Method UpdateExt
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
UpdateExt(bool)
Works the extents of model space and paper space out anew, as AutoCAD's UpdateExt: $EXTMIN and
$EXTMAX the box of the GeometricExtents of every entity of model space, $PEXTMIN
and $PEXTMAX that of paper space, so that they shrink as well as grow; an entity with no extents, a REGION or
a LINE of no length, passed over, and a text counted as the point it stands at, there being no fonts here. A space
with nothing of extents in it is given AutoCAD's empty extents, 1E+20 for the least corner and -1E+20 for the most.
A value the header has already, to the bit, is not written.
public void UpdateExt(bool doBestFit)
Parameters
doBestFitboolWhether an INSERT counts by the box of the shapes it places rather than the box of its block placed, as AutoCAD's best fit: the library always takes the shapes placed, so either gives the same.
Remarks
A drawing whose header says (0, 0, 0) to (5110, 300, 0), from a line drawn and erased since, with a circle of radius 5 about (100, 50) left in model space, is given (95, 45, 0) to (105, 55, 0).
Exceptions
- InvalidOperationException
Thrown when the file has no HEADER section to write the extents in.