Table of Contents

Property ScaleWidth

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ScaleWidth

Gets the width of the frame in percent of its width at 100 percent, which AutoCAD keeps in the extended data (code 41 between OLEBEGIN and OLEEND) as it pastes the object and does not change as it scales or sizes the frame: the picture pasted 83.58 wide and scaled by a half in AutoCAD 2021 is 41.79 wide with 83.58 kept, 50 percent. 100 where the record keeps no such width; 0 for a frame of no width. AutoCAD's console gives 100 for every frame it reads; its palette shows the scale against the kept width.

public double ScaleWidth { get; set; }

Property Value

double

Set, the frame is made that share of the kept width with its upper left corner kept, and the same share of the kept height where LockAspect is true, as AutoCAD 2021 sizes it: the picture kept 83.58 by 30.67 set to 50 is 41.79 by 15.33.

Exceptions

ArgumentOutOfRangeException

Thrown when the percentage is not a finite number above nought.

InvalidOperationException

Thrown when the frame is erased, has no width to size, or its binary holds no head to write the corners into.