Table of Contents

Property Scale

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Scale

Gets or sets the scale of the MULTILEADER (group 45 from R2007, and 40 of the context data), as AutoCAD's Scale; 1 where the record gives none.

public double Scale { get; set; }

Property Value

double

Set, a finite number above nought: the height of the words, the size of the arrows and the landing gap of the context data scaled by the new over the old, as ezdxf's set_scale scales them, the width and the height of the words (43 and 44 of its MTEXT) with them, as AutoCAD 2021 scales them, words 60 by 30 then 120 by 60 at a scale of 2, and words in columns their height alone, their width, columns and gutter (43, 142 to 144) kept, as AutoCAD keeps them; and past it the length of each leader's dogleg as drawn (40), which ezdxf leaves, so that it keeps its size against the words; the MULTILEADER's own length of the doglegs (41) is left unscaled, as AutoCAD 2021 leaves it: Standard's 8 at a scale of 2 is still 8, drawn 16. Words met by leaders on their left only, the doglegs alike, move to keep those landings, as AutoCAD moves them: "ABC" at (100, 50, 0) met from (90, 48, 0) stand at (110, 52, 0) at a scale of 2, the base point of the content (10) moved by the doglegs to (106, 48, 0); met by several leaders on their left, they move by the gap alone and up, and the leaders are landed anew, "ABC" at (160, 40, 0) met from (150, 38, 0) twice standing at (162, 42, 0), both doglegs from (142, 38, 0). Words met on their right stay where they are, which AutoCAD moves by the font's width; where the drawing's FontSearchPath measures them, met on the right alone they move to keep that landing, "ABC" of txt.shx to (79.33, 52, 0) at a scale of 2, and met on both sides they move by the gap alone and up, every leader landed anew (check F1b). A block is drawn scaled too (16 of its context data, and its matrix, 47, made its transform where it stood), as AutoCAD 2021 scales it, its BlockScale still read the same; met by one leader, it moves so that it meets the leader's longer dogleg at its end, the dogleg's start kept: the box of lines from (-10, -5) to (20, 15) placed at (100, 50, 0), met from (82, 55, 0), stands at (118, 45, 0) at a scale of 2. Met on both sides, or by several leaders on one, it stays and the leaders are landed anew at it, from (64, 60, 0) and (156, 60, 0) for that box. The scale it has sets the bit of the overrides (24) alone.

Exceptions

ArgumentOutOfRangeException

Thrown when the scale set is not a finite number above nought.

InvalidOperationException

Thrown when the MULTILEADER is erased.