Class DxfDatabase
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Copying entities of the drawing together, as AutoCAD's Database.WblockCloneObjects copies the objects of ids.
public sealed class DxfDatabase
- Inheritance
-
DxfDatabase
- Inherited Members
Remarks
Opened and saved with nothing changed, a file is written back byte for byte, whatever its version (R12 to R2018), line ends, padding, code page or the sections and entities the library does not read. A change writes the records it is about anew in the file's own style, and every other record keeps its bytes.
The objects are used directly, as AutoCAD's are inside a transaction; there is no ObjectId and no transaction:
// AutoCAD: btr = (BlockTableRecord)tr.GetObject(bt[BlockTableRecord.ModelSpace], OpenMode.ForWrite);
// btr.AppendEntity(line); tr.AddNewlyCreatedDBObject(line, true);
DxfDatabase db = DxfDatabase.Open("plan.dxf");
db.ModelSpace.AppendEntity(new DxfLine(new GeoPoint3(0, 0, 0), new GeoPoint3(100, 0, 0)) { Layer = "steel", ColorIndex = 1 });
foreach (DxfEntity entity in db.ModelSpace) { ... } // DxfLine, ..., DxfUnknownEntity
db.Save("copy.dxf");
A file is read as DxfReader reads it, a binary DXF and one cut short refused with its messages; its coordinates are the file's own, no unit scaled. Editing is for one thread at a time.
Constructors
- DxfDatabase(string)
Makes a new drawing with nothing in it, of a version, as AutoCAD's
new Database(true, true)makes one of its own: the drawing DxfWriter writes with no shape, in millimetres, with model space and paper space, two layouts, the layer 0, the text style Standard, the dimension styles Standard and ISO-25 and the named object dictionary, its header naming the version given ($ACADVER) and its records giving what that version added to them, as AutoCAD writes them: from R2004 on how many objects of each class there are, without which AutoCAD opens no drawing of those versions, and the layouts' shade plot; from R2007 on the unit, explodability and scaling of model space and paper space.new DxfDatabase("AC1024")is a drawing of R2010, the oldest a dynamic block is made in (AddLinearParameter(string, string, GeoPoint3, GeoPoint3, double, DxfBlockParameterValueSet));"AC1015"gives the very textnew DxfWriter().ToString()gives, but for ISO-25 (below) and the code page its header names after the version ($DWGCODEPAGEANSI_1252), as AutoCAD's own empty drawings of every version from R2000 name it: so that a reader that goes by it, as ezdxf does, takes the text of a drawing of R2007 or later, Korean text copied into it among it, for the UTF-8 it is written in, which it took for ANSI_1252 without it.ISO-25 is current, as in AutoCAD 2021's metric template acadiso.dwt saved as each of these versions:
$DIMSTYLEnames it and the header and the style hold the same values, arrowheads and text 2.5, a gap of 0.625, two decimal places and a decimal comma, each of the 20 that differ from AutoCAD's own written into both, as AutoCAD writes them; Standard holds AutoCAD's own (arrowheads 0.18), as acadiso.dwt's does. So GetDimstyleData() gives ISO-25 in every variable, and AutoCAD, which reads a variable the header leaves out as its imperial drawing has it, reads the same.
Properties
- AllowExtendedNames
Gets or sets whether the names of layers, linetypes and the other records may be up to 255 letters long and hold spaces (
$EXTNAMESof 1), as AutoCAD'sAllowExtendedNames; true where the header gives none. Set to false, the names already given are kept.
- Angbase
Gets or sets the direction angles are measured from (
$ANGBASE), in radians as AutoCAD'sAngbase: the header writes degrees, 90 being pi / 2; nought where it gives none.
- Angdir
Gets or sets whether angles grow clockwise (
$ANGDIRof 1); counter-clockwise where the header gives none.
- AnnoAllVisible
Gets or sets whether every annotative object is shown, whatever the scale of its view (ANNOALLVISIBLE), as AutoCAD's
AnnoAllVisible; true where the drawing gives none.
- ApproxNumObjects
Gets how many objects the drawing holds, as AutoCAD's
ApproxNumObjects: those GetObject(string) finds by handle, the entities of every space and block with their vertices and attributes, the objects of the OBJECTS section, and the five tables it reads with their records; those erased left out. AutoCAD counts the records of the tables the library has no class for as well (APPID, VPORT, VIEW, UCS) and the BLOCK and ENDBLK of each block, so its number is somewhat higher. A drawing of R12 that writes no handles counts none. The drawing is walked once for each question, its entities and its records under the lock ItemByHandle(string) takes, so that it may be asked while other threads copy from it or look objects up by handle.
- Attmode
Gets or sets how attributes are shown (
$ATTMODE), as AutoCAD'sAttmode: 0 none, 1 those not hidden, 2 all; 1 where the header gives none.
- Aunits
Gets or sets how angles are shown (
$AUNITS): 0 degrees, 1 degrees, minutes and seconds, 2 grads, 3 radians, 4 surveyor's; 0 where the header gives none.
- Auprec
Gets or sets how many places angles are shown to (
$AUPREC): 0 where the header gives none, as AutoCAD 2021 reads it.
- BlockTable
Gets the block table: model space, paper space and every block, as DxfBlockTable says.
- CameraDisplay
Gets or sets whether cameras are shown (
$CAMERADISPLAYof 1), as AutoCAD'sCameraDisplay; false where the header gives none.
- CameraHeight
Gets or sets the height new cameras are placed at (
$CAMERAHEIGHT), as AutoCAD'sCameraHeight, in drawing units; nought where the header gives none.
- Cannoscale
Gets or sets the annotation scale of model space (CANNOSCALE), as AutoCAD's
Cannoscalegives it, by name:1:1where the drawing gives none.
- Cecolor
Gets or sets the colour new entities are drawn in (
$CECOLOR), as AutoCAD'sCecolor: BYLAYER where the header gives none.
- Celtscale
Gets or sets the linetype scale new entities are given (
$CELTSCALE), as AutoCAD'sCeltscale: an entity of 0.5 has dashes half as long as the drawing's Ltscale makes them; 1 where the header gives none.
- Celtype
Gets or sets the linetype new entities are drawn with (
$CELTYPE), by name:ByLayerwhere the header gives none.
- Celweight
Gets or sets the lineweight new entities are drawn with (
$CELWEIGHT): ByLayer where the header gives none.
- CenterCrossGap
Gets or sets the gap between the cross of a center mark and its lines (CENTERCROSSGAP), kept as CenterCrossSize is;
0.05xwhere the drawing gives none.
- CenterCrossSize
Gets or sets the length of the cross of a center mark (CENTERCROSSSIZE) as AutoCAD 2021 keeps it, a number of drawing units (
6) or a number of times the circle's diameter (0.1x);0.1xwhere the drawing gives none.
- CenterExe
Gets or sets how far the lines of a center mark or a center line run past the circle or the lines (CENTEREXE), in drawing units; 0.12 where the drawing gives none.
- CenterLayer
Gets or sets the layer a center mark and a center line are drawn on (CENTERLAYER), by name, or
.for the current layer;.where the drawing gives none.
- CenterLtScale
Gets or sets the linetype scale of a center mark and a center line (CENTERLTSCALE); 1 where the drawing gives none.
- CenterLtype
Gets or sets the linetype of the lines of a center mark and a center line (CENTERLTYPE), by name;
Center2where the drawing gives none.
- CenterMarkExe
Gets or sets whether a center mark has the lines that run out to the circle (CENTERMARKEXE); true where the drawing gives none.
- Cetransparency
Gets or sets the transparency of new entities (CETRANSPARENCY), as AutoCAD's
Cetransparency: BYLAYER where the drawing gives none. AutoCAD 2021 reads the DICTIONARYVAR as the whole number an entity's 440 holds, its top byte the method (2 by alpha, 1 BYBLOCK, 0 BYLAYER) and its low byte the alpha: the alpha 127 is 33554559. A number with no method in its top byte, as the per cent 61 the library wrote before, is BYLAYER, as AutoCAD reads it; the words ByLayer and ByBlock are read as they say.
- Chamfera
Gets or sets the first distance of a chamfer (
$CHAMFERA), as AutoCAD'sChamfera, in drawing units: a chamfer of 10 by 5 cuts 10 off the first line; nought where the header gives none.
- Chamferb
Gets or sets the second distance of a chamfer (
$CHAMFERB), as AutoCAD'sChamferb, in drawing units; nought where the header gives none.
- Chamferc
Gets or sets the length of a chamfer made by a length and an angle (
$CHAMFERC), as AutoCAD'sChamferc, in drawing units; nought where the header gives none.
- Chamferd
Gets or sets the angle of a chamfer made by a length and an angle (
$CHAMFERD), as AutoCAD'sChamferd, in radians as the header holds it; nought where it gives none.
- Clayer
Gets or sets the layer new entities are drawn on (
$CLAYER), as AutoCAD'sClayernames it:0where the header gives none.
- Cmaterial
Gets or sets the material new entities are given (
$CMATERIAL, a handle), as AutoCAD'sCmaterialgives its id: the MATERIAL of the drawing's dictionary of materials (MaterialDictionary), ByLayer in a new drawing; null where the header names none the drawing has.
- Cmljust
Gets or sets how new multilines are placed on the points picked (
$CMLJUST), as AutoCAD'sCmljust: 0 by their top, 1 their middle, 2 their bottom; 0 where the header gives none.
- Cmlscale
Gets or sets the scale of new multilines (
$CMLSCALE), as AutoCAD'sCmlscale: a style 1 wide drawn 20 wide at 20, the other way round below nought; 20 where the header gives none.
- CmlstyleID
Gets or sets the multiline style new multilines take (
$CMLSTYLE), as AutoCAD'sCmlstyleIDgives its id: the MLINESTYLE of the drawing's dictionary of multiline styles (MLStyleDictionary) the header names,Standardwhere it names none; null where the dictionary has no style of the name.
- CodePage
Gets the code page the text of the file is read in:
UTF-8for a file of R2007 or later, else the page its header names ($DWGCODEPAGE) asANSI_and its number,ANSI_1252where it names none.
- ColorDictionary
Gets the dictionary of colours of colour books (ACAD_COLOR), as AutoCAD's
ColorDictionaryIdnames it; null where the drawing has none.
- Cshadow
Gets or sets which shadows new entities cast and receive (
$CSHADOW), as AutoCAD'sCshadow: 0 both, 1 cast, 2 received, 3 none; 0 where the header gives none.
- DataLinkDictionary
Gets the dictionary of data links (ACAD_DATALINK), as AutoCAD's
DataLinkDictionaryIdnames it; null where the drawing has none.
- DetailViewStyle
Gets or sets the detail view style new detail views take (CVIEWDETAILSTYLE), as AutoCAD's
DetailViewStylegives its id, by name; null where the drawing gives none.
- DetailViewStyleDictionary
Gets the dictionary of detail view styles (ACAD_DETAILVIEWSTYLE), as AutoCAD's
DetailViewStyleDictionaryIdnames it; null where the drawing has none.
- DgnFrame
Gets or sets whether the frames of DGN underlays are shown and plotted (
$DGNFRAME), as AutoCAD'sDgnFrame: 0 hidden, 1 shown and plotted, 2 shown; 2 where the header gives none.
- DimAssoc
Gets or sets how new dimensions are tied to what they measure (
$DIMASSOC, group 280), as AutoCAD'sDimAssoc: 0 exploded into lines and texts, 1 one entity tied to nothing, 2 one entity that follows the points it measures; 2 where the header gives none.
- DimStyleTable
Gets the dimension style table of the drawing, as AutoCAD's
DimStyleTableIdgives its id: the styles of its DIMSTYLE records, as DxfDimStyleTable says.
- Dimadec
Gets or sets the decimal places of the angles of new angular dimensions (
$DIMADEC), as AutoCAD'sDimadec: -1 for those of Dimdec; 0 where the header gives none.
- Dimalt
Gets or sets whether new dimensions show their measurement in alternate units as well (
$DIMALT), as AutoCAD'sDimalt; false where the header gives none.
- Dimaltd
Gets or sets the decimal places of alternate units (
$DIMALTD), as AutoCAD'sDimaltd; 3 where the header gives none.
- Dimaltf
Gets or sets the factor a measurement is multiplied by in alternate units (
$DIMALTF), as AutoCAD'sDimaltf: 25.4 for inches shown as millimetres; 1 / 25.4, millimetres shown as inches, where the header gives none.
- Dimaltrnd
Gets or sets what alternate units are rounded to (
$DIMALTRND), as AutoCAD'sDimaltrnd; nought, no rounding, where the header gives none.
- Dimalttd
Gets or sets the decimal places of the tolerances in alternate units (
$DIMALTTD), as AutoCAD'sDimalttd; 3 where the header gives none.
- Dimalttz
Gets or sets which zeros of the tolerances in alternate units are left out (
$DIMALTTZ), as AutoCAD'sDimalttz, as Dimzin says; 0 where the header gives none.
- Dimaltu
Gets or sets the units of alternate units (
$DIMALTU), as AutoCAD'sDimaltu: 1 scientific, 2 decimal, 3 engineering, 4 architectural stacked, 5 fractional stacked, 6 architectural, 7 fractional, 8 the Windows desktop's; 2 where the header gives none.
- Dimaltz
Gets or sets which zeros of alternate units are left out (
$DIMALTZ), as AutoCAD'sDimaltz, as Dimzin says; 0 where the header gives none.
- Dimapost
Gets or sets the prefix and suffix of alternate units (
$DIMAPOST), as AutoCAD'sDimapost:[] inwrites the alternate measurement then " in"; empty where the header gives none.
- Dimarcsym
Gets or sets where the arc symbol of a new arc length dimension stands (
$DIMARCSYM), as AutoCAD'sDimarcsym: 0 before the text, 1 above it, 2 none; 0 where the header gives none.
- Dimaso
Gets or sets whether new dimensions are made whole, as one entity, rather than of lines and texts (
$DIMASO), as AutoCAD'sDimaso, which DimAssoc has taken over; true where the header gives none.
- Dimasz
Gets or sets the size of the arrowheads (
$DIMASZ), as AutoCAD'sDimasz; 2.5 where the header gives none.
- Dimatfit
Gets or sets what is moved out between the extension lines where text and arrows do not both fit (
$DIMATFIT), as AutoCAD'sDimatfit: 0 both, 1 the arrows, 2 the text, 3 the one that fits worse; 3 where the header gives none.
- Dimaunit
Gets or sets the units of angles (
$DIMAUNIT), as AutoCAD'sDimaunit: 0 decimal degrees, 1 degrees, minutes and seconds, 2 grads, 3 radians; 0 where the header gives none.
- Dimazin
Gets or sets which zeros of angles are left out (
$DIMAZIN), as AutoCAD'sDimazin: 1 leading, 2 trailing, 3 both; 0 where the header gives none.
- Dimblk
Gets or sets the block both arrowheads are drawn with (
$DIMBLK, by its name), as AutoCAD'sDimblkgives its id:_ARCHTICK, the header naming it_ARCHTICKorARCHTICK; null for AutoCAD's closed filled arrowhead, where the header names none, or a block the drawing has not.
- Dimblk1
Gets or sets the block of the first arrowhead where Dimsah draws them apart (
$DIMBLK1, by its name), as AutoCAD'sDimblk1; null for the closed filled one.
- Dimblk2
Gets or sets the block of the second arrowhead where Dimsah draws them apart (
$DIMBLK2, by its name), as AutoCAD'sDimblk2; null for the closed filled one.
- Dimcen
Gets or sets the centre marks of radial dimensions (
$DIMCEN), as AutoCAD'sDimcen: above nought a mark that long, below nought a centre line, nought none; 2.5 where the header gives none.
- Dimclrd
Gets or sets the colour of the dimension lines (
$DIMCLRD), as AutoCAD'sDimclrd; BYBLOCK where the header gives none.
- Dimclre
Gets or sets the colour of the extension lines (
$DIMCLRE), as AutoCAD'sDimclre; BYBLOCK where the header gives none.
- Dimclrt
Gets or sets the colour of the texts (
$DIMCLRT), as AutoCAD'sDimclrt; BYBLOCK where the header gives none.
- Dimdec
Gets or sets the decimal places of measurements (
$DIMDEC), as AutoCAD'sDimdec; 2 where the header gives none.
- Dimdle
Gets or sets how far the dimension line runs past the extension lines where it ends in ticks (
$DIMDLE), as AutoCAD'sDimdle; nought where the header gives none.
- Dimdli
Gets or sets how far apart baseline dimensions stand (
$DIMDLI), as AutoCAD'sDimdli; 3.75 where the header gives none.
- Dimdsep
Gets or sets the decimal separator (
$DIMDSEP, the letter's number), as AutoCAD'sDimdsep: '.' is 46; ',' (44) where the header gives none.
- Dimexe
Gets or sets how far the extension lines run past the dimension line (
$DIMEXE), as AutoCAD'sDimexe; 1.25 where the header gives none.
- Dimexo
Gets or sets how far the extension lines stand off the points measured (
$DIMEXO), as AutoCAD'sDimexo; 0.625 where the header gives none.
- Dimfrac
Gets or sets how fractions are stacked in architectural and fractional units (
$DIMFRAC), as AutoCAD'sDimfrac: 0 across, 1 aslant, 2 not stacked; 0 where the header gives none.
- Dimfxlen
Gets or sets the fixed length of the extension lines where DimfxlenOn (
$DIMFXL), as AutoCAD'sDimfxlen; 1 where the header gives none.
- DimfxlenOn
Gets or sets whether the extension lines are of the fixed length Dimfxlen (
$DIMFXLON), as AutoCAD'sDimfxlenOn; false where the header gives none.
- Dimgap
Gets or sets the gap about the text of a dimension (
$DIMGAP), as AutoCAD'sDimgap: below nought a box drawn about it; 0.625 where the header gives none.
- Dimjogang
Gets or sets the angle of the jog of a jogged radius dimension (
$DIMJOGANG), as AutoCAD'sDimjogang: in radians, as the header holds it, so 60 degrees is pi / 3; 45 degrees, pi / 4, where the header gives none.
- Dimjust
Gets or sets where the text stands along the dimension line (
$DIMJUST), as AutoCAD'sDimjust: 0 centred, 1 by the first extension line, 2 by the second, 3 and 4 above them; 0 where the header gives none.
- Dimldrblk
Gets or sets the block the arrowhead of a leader is drawn with (
$DIMLDRBLK, by its name), as AutoCAD'sDimldrblk; null for the closed filled one.
- Dimlfac
Gets or sets the factor a length measured is multiplied by (
$DIMLFAC), as AutoCAD'sDimlfac: 100 for a detail drawn at 1:100; 1 where the header gives none.
- Dimlim
Gets or sets whether a measurement is shown as its limits, Dimtp and Dimtm about it (
$DIMLIM), as AutoCAD'sDimlim; false where the header gives none.
- Dimltex1
Gets or sets the linetype of the first extension line (
$DIMLTEX1, by its name), as AutoCAD'sDimltex1; null where the header names none, or one the drawing has not.
- Dimltex2
Gets or sets the linetype of the second extension line (
$DIMLTEX2, by its name), as AutoCAD'sDimltex2; null where the header names none, or one the drawing has not.
- Dimltype
Gets or sets the linetype of the dimension line (
$DIMLTYPE, by its name), as AutoCAD'sDimltype; null where the header names none, or one the drawing has not.
- Dimlunit
Gets or sets the units of lengths (
$DIMLUNIT), as AutoCAD'sDimlunit: 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional, 6 the Windows desktop's; 2 where the header gives none.
- Dimlwd
Gets or sets the lineweight of the dimension lines (
$DIMLWD), as AutoCAD'sDimlwd; ByBlock where the header gives none.
- Dimlwe
Gets or sets the lineweight of the extension lines (
$DIMLWE), as AutoCAD'sDimlwe; ByBlock where the header gives none.
- Dimpost
Gets or sets the prefix and suffix of measurements (
$DIMPOST), as AutoCAD'sDimpost:<> mmwrites the measurement then " mm",mmalone the same with no space; empty where the header gives none.
- Dimrnd
Gets or sets what measurements are rounded to (
$DIMRND), as AutoCAD'sDimrnd: 0.5 rounds 12.3 to 12.5; nought, no rounding, where the header gives none.
- Dimsah
Gets or sets whether the two arrowheads are drawn apart, by Dimblk1 and Dimblk2 (
$DIMSAH), as AutoCAD'sDimsah; false where the header gives none.
- Dimscale
Gets or sets the scale of every size of new dimensions (
$DIMSCALE), as AutoCAD'sDimscale: 100 for a drawing plotted at 1:100, nought for the scale of the viewport in paper space; 1 where the header gives none.
- Dimsd1
Gets or sets whether the first half of the dimension line is left out (
$DIMSD1), as AutoCAD'sDimsd1; false where the header gives none.
- Dimsd2
Gets or sets whether the second half of the dimension line is left out (
$DIMSD2), as AutoCAD'sDimsd2; false where the header gives none.
- Dimse1
Gets or sets whether the first extension line is left out (
$DIMSE1), as AutoCAD'sDimse1; false where the header gives none.
- Dimse2
Gets or sets whether the second extension line is left out (
$DIMSE2), as AutoCAD'sDimse2; false where the header gives none.
- Dimsho
Gets or sets whether a dimension being dragged is drawn anew as it goes (
$DIMSHO), as AutoCAD'sDimsho, which AutoCAD no longer reads; true where the header gives none.
- Dimsoxd
Gets or sets whether arrowheads that do not fit between the extension lines are left out (
$DIMSOXD), as AutoCAD'sDimsoxd; false where the header gives none.
- Dimstyle
Gets or sets the style new dimensions are drawn in (
$DIMSTYLE), by name:ISO-25where the header gives none.
- Dimtad
Gets or sets where the text stands across the dimension line (
$DIMTAD), as AutoCAD'sDimtad: 0 centred on it, 1 above it, 2 on the side away from the points, 3 as JIS, 4 below; 1 where the header gives none.
- Dimtdec
Gets or sets the decimal places of tolerances (
$DIMTDEC), as AutoCAD'sDimtdec; 2 where the header gives none.
- Dimtfac
Gets or sets the height of tolerances and fractions for that of the text (
$DIMTFAC), as AutoCAD'sDimtfac: 0.8 makes them 2 high under a text 2.5 high; 1 where the header gives none.
- Dimtfill
Gets or sets the background of the text (
$DIMTFILL), as AutoCAD'sDimtfill: 0 none, 1 the drawing's background, 2 Dimtfillclr; 0 where the header gives none.
- Dimtfillclr
Gets or sets the colour of the background of the text where Dimtfill is 2 (
$DIMTFILLCLR), as AutoCAD'sDimtfillclr; BYBLOCK where the header gives none.
- Dimtih
Gets or sets whether a text between the extension lines stands level (
$DIMTIH), as AutoCAD'sDimtih; false, along the dimension line, where the header gives none.
- Dimtix
Gets or sets whether the text is kept between the extension lines (
$DIMTIX), as AutoCAD'sDimtix; false where the header gives none.
- Dimtm
Gets or sets the lower tolerance (
$DIMTM), as AutoCAD'sDimtm; nought where the header gives none.
- Dimtmove
Gets or sets what moving the text does (
$DIMTMOVE), as AutoCAD'sDimtmove: 0 moves the dimension line with it, 1 adds a leader, 2 moves it freely; 0 where the header gives none.
- Dimtofl
Gets or sets whether a dimension line is drawn between the extension lines though the text stands outside (
$DIMTOFL), as AutoCAD'sDimtofl; true where the header gives none.
- Dimtoh
Gets or sets whether a text outside the extension lines stands level (
$DIMTOH), as AutoCAD'sDimtoh; false, along the dimension line, where the header gives none.
- Dimtol
Gets or sets whether tolerances are shown after the measurement (
$DIMTOL), as AutoCAD'sDimtol; false where the header gives none.
- Dimtolj
Gets or sets where tolerances stand against the measurement (
$DIMTOLJ), as AutoCAD'sDimtolj: 0 bottom, 1 middle, 2 top; 0 where the header gives none.
- Dimtp
Gets or sets the upper tolerance (
$DIMTP), as AutoCAD'sDimtp; nought where the header gives none.
- Dimtsz
Gets or sets the size of the ticks drawn in place of arrowheads (
$DIMTSZ), as AutoCAD'sDimtsz: nought draws arrowheads; nought where the header gives none.
- Dimtvp
Gets or sets how far a centred text stands above or below the dimension line, in heights of the text (
$DIMTVP), as AutoCAD'sDimtvp; nought where the header gives none.
- Dimtxsty
Gets or sets the text style of the texts (
$DIMTXSTY, by its name), as AutoCAD'sDimtxstygives its id: Standard where the header names none; null where the drawing has no style of the name.
- Dimtxt
Gets or sets the height of the texts (
$DIMTXT), as AutoCAD'sDimtxt; 2.5 where the header gives none.
- Dimtxtdirection
Gets or sets whether the text of new dimensions reads from right to left (
$DIMTXTDIRECTION), as AutoCAD'sDimtxtdirection: true for Arabic or Hebrew; false where the header gives none.
- Dimtzin
Gets or sets which zeros of tolerances are left out (
$DIMTZIN), as AutoCAD'sDimtzin, as Dimzin says; 8, the trailing ones, where the header gives none.
- Dimupt
Gets or sets whether the text is placed by the user as the dimension line is (
$DIMUPT), as AutoCAD'sDimupt; false where the header gives none.
- Dimzin
Gets or sets which zeros of measurements are left out (
$DIMZIN), as AutoCAD'sDimzin: 4 the leading ones, so that 0.50 is .50, 8 the trailing ones, so that 12.50 is 12.5, and of feet and inches 0 nought feet and nought inches, 1 neither, 2 nought inches, 3 nought feet; 8 where the header gives none.
- DispSilh
Gets or sets whether the edges of a body are drawn as its outline alone in a wireframe view (
$DISPSILHof 1), as AutoCAD'sDispSilh; false where the header gives none.
- DwfFrame
Gets or sets whether the frames of DWF underlays are shown and plotted (
$DWFFRAME), as AutoCAD'sDwfFrame: 0 hidden, 1 shown and plotted, 2 shown; 2 where the header gives none.
- Elevation
Gets or sets the elevation new entities are drawn at in model space (
$ELEVATION), as AutoCAD'sElevation, in drawing units; nought where the header gives none.
- EndCaps
Gets or sets how the ends of wide lines are drawn (
$ENDCAPS), as AutoCAD'sEndCaps; None where the header gives none.
- Extmax
Gets or sets the greatest corner of the box the drawing's model space fills (
$EXTMAX), as AutoCAD'sExtmax; the origin where the header gives none.
- Extmin
Gets or sets the least corner of the box the drawing's model space fills (
$EXTMIN), as AutoCAD'sExtmin; the origin where the header gives none. It grows to hold what is appended or moved, each axis on its own, an INSERT by what it places (one that places nothing, its block not defined, an external reference, a layout's block or past MaxPlacedEntities, leaving it as it is), and an erase does not shrink it, as AutoCAD leaves it until it zooms to the extents. Extents left empty, as the 1E+20 above -1E+20 of a drawing ezdxf has not measured, become the box of what is appended or moved: a line from (5000, -4000, 0) to (5100, -3900, 10) makes this (5000, -4000, 0).
- Facetres
Gets or sets how smooth shaded bodies are drawn (FACETRES), as AutoCAD's
Facetres: 0.01 to 10; 0.5 where the drawing gives none.
- Filename
Gets or sets the full path of the file the drawing was last opened from or saved to, as AutoCAD's
Filenamegives the file of a drawing:C:\Plans\plan.dxfonceOpen(@"C:\Plans\plan.dxf")has read it, the path of a copy once Save(string) has written one; null for a drawing opened from a stream or a text, and not saved to a path since. A program that writes the drawing through a stream (Save(Stream), which leaves the path as it was) to put it in a file of its own, a temporary file swapped in when whole, sets it to the path of the file once that is done, as a save to the path does; the folder of it is where a relative path of an external reference is looked for from then on. OriginalFileName is not changed by it.
- Filletrad
Gets or sets the radius of a fillet (
$FILLETRAD), as AutoCAD'sFilletrad, in drawing units; 10 where the header gives none.
- Fillmode
Gets or sets whether solids, traces and wide polylines are filled (
$FILLMODEof 1); true where the header gives none.
- FingerprintGuid
Gets or sets the identity of the drawing (
$FINGERPRINTGUID), as AutoCAD'sFingerprintGuid: a GUID, kept by every copy of the drawing; read as the header writes it, the GUID of noughts where it gives none.
- FontSearchPath
Gets or sets the folders the SHX and TrueType fonts of the drawing's text styles are looked for in, separated by semicolons and searched in their order, as AutoCAD looks for them on its support path; empty, as a drawing is opened or made, for none.
- GeoDataObject
Gets the geographic location of the drawing, as AutoCAD's
GeoDataObjectgives its id: the GEODATA model space's extension dictionary names ACAD_GEOGRAPHICDATA; null where the drawing holds none, as one never placed on the earth. The version of the file is not asked: one older than R2010 holding a GEODATA gives it, though PostToDb() adds none to a file older than R2010.
- GroupDictionary
Gets the dictionary of groups (ACAD_GROUP), as AutoCAD's
GroupDictionaryIdnames it, each a DxfGroup under its name; null where the drawing has none.
- HaloGap
Gets or sets the gap left where a line passes behind another when hidden lines are removed (
$HALOGAP), as AutoCAD'sHaloGap, in per cent of a unit: 0 to 100; 0 where the header gives none.
- Handseed
Gets the handle the next object added to the drawing is given at least (
$HANDSEED), as AutoCAD'sHandseed, in hexadecimal; null where the header gives none. The file sets it above every handle it gives.
- HideText
Gets or sets whether texts are hidden by what stands in front of them when hidden lines are removed (
$HIDETEXT), as AutoCAD'sHideText: 0 not, 1 they are; 1 where the header gives none.
- HpInherit
Gets or sets whether a hatch takes the origin of the hatch it matches (HPINHERIT), as AutoCAD's
HpInherit; false where the drawing gives none.
- HyperlinkBase
Gets or sets the path the relative hyperlinks of the drawing start from (
$HYPERLINKBASE), as AutoCAD'sHyperlinkBase: empty, the folder of the drawing, where the header gives none.
- Indexctl
Gets or sets which indexes the drawing keeps for partial opening (
$INDEXCTL), as AutoCAD'sIndexctl: 0 none, 1 of layers, 2 of space, 3 both; 0 where the header gives none.
- Insbase
Gets or sets the point the drawing is inserted at when it is inserted into another (
$INSBASE): the origin where the header gives none.
- Insunits
Gets or sets the unit the drawing is in (
$INSUNITS), as AutoCAD'sInsunits: Millimeters for a drawing in millimetres; Undefined where the header gives none. The coordinates are not scaled by it.
- Interferecolor
Gets or sets the colour the bodies where two interfere are drawn in (
$INTERFERECOLOR), as AutoCAD'sInterferecolor: BYLAYER where the header gives none.
- Interfereobjvs
Gets or sets the visual style the bodies where two interfere are shown in (
$INTERFEREOBJVS, a handle), as AutoCAD'sInterfereobjvsgives its id: a VISUALSTYLE of VisualStyleDictionary; null where the header names none the drawing has.
- Interferevpvs
Gets or sets the visual style of the viewport while interference is checked (
$INTERFEREVPVS, a handle), as AutoCAD'sInterferevpvsgives its id: a VISUALSTYLE of VisualStyleDictionary; null where the header names none the drawing has.
- IntersectColor
Gets or sets the colour of the lines where the faces of bodies cross (
$INTERSECTIONCOLOR), as AutoCAD'sIntersectColor: 0 by block, 1 to 255 a colour of the index, 256 by layer, 257 by entity; 257 where the header gives none.
- IntersectDisplay
Gets or sets whether the lines where the faces of bodies cross are drawn (
$INTERSECTIONDISPLAY), as AutoCAD'sIntersectDisplay: 0 not, 1 they are; 0 where the header gives none.
- Isolines
Gets or sets how many lines a curved face of a body is drawn with (ISOLINES), as AutoCAD's
Isolines: 0 to 2047; 4 where the drawing gives none.
- JoinStyle
Gets or sets how wide lines that meet are joined (
$JOINSTYLE), as AutoCAD'sJoinStyle; StyleNone where the header gives none.
- LastSavedAsMaintenanceVersion
Gets the maintenance release the file was last saved as (
$ACADMAINTVER), as AutoCAD'sLastSavedAsMaintenanceVersionnumbers it: the drawing is saved in the release it was read in, so this is MaintenanceReleaseVersion.
- Latitude
Gets or sets the latitude of the drawing's place (
$LATITUDE), as AutoCAD'sLatitude, in degrees north: -90 to 90; 37.795, San Francisco, where the header gives none.
- LayerEval
Gets or sets when the layer list is checked for new layers (LAYEREVAL), as AutoCAD's
LayerEval: 0 never, 1 for new layers of external references, 2 for all; 0 where the drawing gives none.
- LayerFilters
Gets the layer filters of the drawing, as AutoCAD's
LayerFilters: the filter All at the root, and nested in it the filters of the dictionaries ACLYDICTIONARY and ACAD_LAYERFILTERS of the layer table's extension dictionary and the three AutoCAD makes, as DxfLayerFilter says; a new tree on each call, as the drawing has them then.
- LayerStateManager
Gets the layer states of the drawing, as AutoCAD's
LayerStateManager: the states of the dictionary ACAD_LAYERSTATES of the layer table's extension dictionary, read and listed as DxfLayerStateManager says; the same manager each time.
- LayerTable
Gets the layer table, as DxfLayerTable says.
- LayoutDictionary
Gets the dictionary of layouts (ACAD_LAYOUT), as AutoCAD's
LayoutDictionaryIdnames it, each a DxfLayout under its name; null where the drawing has none.
- Layouts
Gets the layouts of the drawing, the LAYOUTs of its layout dictionary in the order of their tabs (group 71), Model first, as AutoCAD's layout tabs stand; those of one tab number by name, then by handle. Empty for a file of R12, which has none.
- LensLength
Gets or sets the length of the lens of a view in perspective (
$LENSLENGTH), as AutoCAD'sLensLength, in millimetres: 50 where the header gives none.
- LightGlyphDisplay
Gets or sets whether the glyphs of lights are shown (
$LIGHTGLYPHDISPLAY), as AutoCAD'sLightGlyphDisplay: 0 not, 1 they are; 1 where the header gives none.
- LightingUnits
Gets or sets the units of lighting (LIGHTINGUNITS), as AutoCAD's
LightingUnits: 0 generic, 1 American, 2 international; 2 where the drawing gives none.
- LightsInBlocks
Gets or sets whether the lights in blocks are drawn (LIGHTSINBLOCKS), as AutoCAD's
LightsInBlocks; true where the drawing gives none.
- Limcheck
Gets or sets whether drawing outside the limits of model space is refused (
$LIMCHECKof 1), as AutoCAD'sLimcheck; false where the header gives none.
- Limmax
Gets or sets the greatest corner of the drawing's limits in model space (
$LIMMAX): (420, 297) where the header gives none.
- Limmin
Gets or sets the least corner of the drawing's limits in model space (
$LIMMIN): (0, 0) where the header gives none.
- LineWeightDisplay
Gets or sets whether lineweights are drawn on the screen (
$LWDISPLAYof 1), as AutoCAD'sLineWeightDisplay; false where the header gives none.
- LinetypeTable
Gets the linetype table, as DxfLinetypeTable says.
- LoftAng1
Gets or sets the draft angle of a loft through its first section (
$LOFTANG1), as AutoCAD'sLoftAng1, in radians: nought to less than two pi, as AutoCAD takes 0 to less than 360 degrees; a quarter turn where the header gives none.
- LoftAng2
Gets or sets the draft angle of a loft through its last section (
$LOFTANG2), as AutoCAD'sLoftAng2, in radians: nought to less than two pi, as AutoCAD takes 0 to less than 360 degrees; a quarter turn where the header gives none.
- LoftMag1
Gets or sets how far the draft angle of a loft reaches from its first section (
$LOFTMAG1), as AutoCAD'sLoftMag1: 0 to 10; nought where the header gives none.
- LoftMag2
Gets or sets how far the draft angle of a loft reaches from its last section (
$LOFTMAG2), as AutoCAD'sLoftMag2: 0 to 10; nought where the header gives none.
- LoftNormals
Gets or sets how a loft passes through its sections (
$LOFTNORMALS), as AutoCAD'sLoftNormals: 0 ruled, 1 smooth, 2 to 6 square to the first, last, both or all sections or by draft angles; 1 where the header gives none.
- LoftParam
Gets or sets the shape of a lofted body (
$LOFTPARAM), as AutoCAD'sLoftParam: a sum of bits, 1 fewest twists, 2 the sections' directions lined up, 4 simple surfaces, 8 closed; 7 where the header gives none.
- Longitude
Gets or sets the longitude of the drawing's place (
$LONGITUDE), as AutoCAD'sLongitude, in degrees east: -180 to 180; -122.394, San Francisco, where the header gives none.
- Ltscale
Gets or sets the scale of every linetype of the drawing (
$LTSCALE): 1 where the header gives none.
- Lunits
Gets or sets how lengths are shown (
$LUNITS): 1 scientific, 2 decimal, 3 engineering, 4 architectural, 5 fractional; 2 where the header gives none.
- Luprec
Gets or sets how many places lengths are shown to (
$LUPREC): 4 where the header gives none.
- MLStyleDictionary
Gets the dictionary of multiline styles (ACAD_MLINESTYLE), as AutoCAD's
MLStyleDictionaryIdnames it; null where the drawing has none.
- MLeaderStyleDictionary
Gets the dictionary of multileader styles (ACAD_MLEADERSTYLE), as AutoCAD's
MLeaderStyleDictionaryIdnames it; null where the drawing has none.
- MLeaderscale
Gets or sets the scale of multileaders that are not annotative (MLEADERSCALE), as AutoCAD's
MLeaderscale; 1 where the drawing gives none.
- MLeaderstyle
Gets or sets the multileader style new multileaders take (CMLEADERSTYLE), as AutoCAD's
MLeaderstylegives its id, by name:Standardwhere the drawing gives none.
- MaintenanceReleaseVersion
Gets the maintenance release of AutoCAD the file is written for (
$ACADMAINTVER, group 70, or 90 from R2018), as AutoCAD'sMaintenanceReleaseVersion: nought where the header gives none.
- MaterialDictionary
Gets the dictionary of materials (ACAD_MATERIAL), as AutoCAD's
MaterialDictionaryIdnames it; null where the drawing has none.
- Maxactvp
Gets or sets the most viewports shown at once in a layout (
$MAXACTVP), as AutoCAD'sMaxactvp: 2 to 64; 64 where the header gives none.
- Measurement
Gets or sets whether the drawing takes its hatch patterns and linetypes from the imperial or the metric files (
$MEASUREMENT), as AutoCAD'sMeasurement; Metric where the header gives none.
- Menu
Gets the menu file the drawing was last edited with (
$MENU), as AutoCAD'sMenu:.where the header gives none.
- Mirrtext
Gets or sets whether texts are mirrored with what they are in (
$MIRRTEXTof 1); false where the header gives none, as AutoCAD 2021 reads it.
- ModelSpace
Gets model space, as AutoCAD's block
*Model_Space: the entities of the ENTITIES section not in paper space, those appended after them. It stands for its BLOCK_RECORD (its BLOCK$MODEL_SPACEin a file of R12) from the moment the drawing is opened, with its handle, owner and extended data.
- MsLtScale
Gets or sets whether linetypes in model space are scaled by the annotation scale (MSLTSCALE), as AutoCAD's
MsLtScale; true where the drawing gives none.
- MsOleScale
Gets or sets the scale of OLE objects in model space (MSOLESCALE), as AutoCAD's
MsOleScale; 1 where the drawing gives none.
- NamedObjectsDictionary
Gets the named object dictionary, as AutoCAD's
NamedObjectsDictionaryIdnames it: the first DICTIONARY of the OBJECTS section, which names every other dictionary of the drawing (ACAD_GROUP, ACAD_LAYOUT and on); null in a file of R12, or one with no OBJECTS section.
- NorthDirection
Gets or sets the angle between the drawing's Y axis and north (
$NORTHDIRECTION), as AutoCAD'sNorthDirection, in radians as the header holds it; nought where it gives none.
- ObjectContextManager
Gets the contexts of the drawing, as AutoCAD's
ObjectContextManager: its collectionACDB_ANNOTATIONSCALESis the drawing's list of scales, the SCALE objects of ACAD_SCALELIST.db.ObjectContextManager.GetContextCollection("ACDB_ANNOTATIONSCALES")gives it, empty for a drawing that has no list, as one of R12.
- ObscuredColor
Gets or sets the colour lines hidden by others are drawn in (
$OBSCOLOR), as AutoCAD'sObscuredColor: 0 by block, 1 to 255 a colour of the index, 256 by layer, 257 by entity; 257 where the header gives none.
- ObscuredLineType
Gets or sets the linetype lines hidden by others are drawn with (
$OBSLTYPE), as AutoCAD'sObscuredLineType: 0 they are not drawn, 1 to 11 the dashes and dots of AutoCAD's list; 0 where the header gives none.
- OleStartUp
Gets or sets whether OLE objects start their own applications when the drawing is plotted (
$OLESTARTUPof 1), as AutoCAD'sOleStartUp; false where the header gives none.
- OriginalFileMaintenanceVersion
Gets the maintenance release of the file as it was opened (
$ACADMAINTVER), as AutoCAD'sOriginalFileMaintenanceVersionnumbers it: the drawing keeps the release it was read in, so this is MaintenanceReleaseVersion.
- OriginalFileName
Gets the full path of the file the drawing was opened from, as AutoCAD's
OriginalFileName: kept when the drawing is saved elsewhere; null for a drawing opened from a stream or a text.
- Orthomode
Gets or sets whether drawing is held to the axes (
$ORTHOMODEof 1); false where the header gives none.
- PaperSpace
Gets paper space, as AutoCAD's block
*Paper_Space: the entities of the ENTITIES section in paper space (group 67 of 1), those of the layout last shown. Those of the other layouts are in the blocks*Paper_Space0and on. It stands for its records from the moment the drawing is opened, as ModelSpace does.
- PatternSearchPath
Gets or sets the folders the hatch pattern files (.pat) are looked for in, separated by semicolons and searched in their order, as AutoCAD looks for them on its support path; empty, as a drawing is opened or made, for none.
- PdfFrame
Gets or sets whether the frame of PDF underlays is shown and plotted (PDFFRAME), as AutoCAD's
PdfFrame: 0 hidden, 1 shown and plotted, 2 shown; 1 where the drawing gives none.
- Pdmode
Gets or sets how points are drawn (
$PDMODE): 0, a dot, where the header gives none.
- Pdsize
Gets or sets how large points are drawn (
$PDSIZE): nought where the header gives none.
- Pelevation
Gets or sets the elevation new entities are drawn at in paper space (
$PELEVATION), as AutoCAD'sPelevation, in drawing units; nought where the header gives none.
- Pextmax
Gets or sets the greatest corner of the box the drawing's paper space fills (
$PEXTMAX), as AutoCAD'sPextmax; the origin where the header gives none.
- Pextmin
Gets or sets the least corner of the box the drawing's paper space fills (
$PEXTMIN), as AutoCAD'sPextmin; the origin where the header gives none. Like Extmin, it is not shrunk by what is erased.
- Pinsbase
Gets or sets the point paper space is inserted at when the drawing is inserted into another (
$PINSBASE), as AutoCAD'sPinsbase: the origin where the header gives none.
- Plimcheck
Gets or sets whether drawing outside the limits of paper space is refused (
$PLIMCHECKof 1), as AutoCAD'sPlimcheck; false where the header gives none.
- Plimmax
Gets or sets the greatest corner of the drawing's limits in paper space (
$PLIMMAX), as AutoCAD'sPlimmax: (420, 297), a sheet of A3, where the header gives none.
- Plimmin
Gets or sets the least corner of the drawing's limits in paper space (
$PLIMMIN), as AutoCAD'sPlimmin: (0, 0) where the header gives none.
- PlineEllipse
Gets or sets whether an ellipse is drawn as a polyline (PELLIPSE), as AutoCAD's
PlineEllipse; false where the drawing gives none.
- Plinegen
Gets or sets whether the linetype of a polyline runs on round its vertices (
$PLINEGENof 1) rather than starting again at each, as AutoCAD'sPlinegen; false where the header gives none.
- Plinewid
Gets or sets the width new polylines are given (
$PLINEWID), as AutoCAD'sPlinewid, in drawing units; nought where the header gives none.
- PlotSettingsDictionary
Gets the dictionary of page setups (ACAD_PLOTSETTINGS), as AutoCAD's
PlotSettingsDictionaryIdnames it, each a DxfPlotSettings; null where the drawing has none.
- PlotStyleMode
Gets whether the drawing plots by the colours of its entities (
$PSTYLEMODEof 1, a colour-dependent plot style table, CTB) rather than by named plot styles (0, STB), as AutoCAD'sPlotStyleMode; true where the header gives none.
- PlotStyleNameDictionary
Gets the dictionary of plot style names (ACAD_PLOTSTYLENAME), as AutoCAD's
PlotStyleNameDictionaryIdnames it; null where the drawing has none.
- ProjectName
Gets or sets the name of the project the drawing belongs to (
$PROJECTNAME), as AutoCAD'sProjectName, under which AutoCAD looks for its external references; empty where the header gives none.
- Psltscale
Gets or sets whether the linetypes of paper space scale the dashes of what viewports show by the scale of each viewport (
$PSLTSCALEof 1), as AutoCAD'sPsltscale, so that a dash is as long on the sheet whatever the viewport; true where the header gives none.
- PsolHeight
Gets or sets the height new polysolids are given (
$PSOLHEIGHT), as AutoCAD'sPsolHeight, in drawing units; 80 where the header gives none, as AutoCAD's metric drawing (acadiso.dwt) has it, where a new drawing of ezdxf has 0.08.
- PsolWidth
Gets or sets the width new polysolids are given (
$PSOLWIDTH), as AutoCAD'sPsolWidth, in drawing units; 5 where the header gives none, as AutoCAD's metric drawing (acadiso.dwt) has it, where a new drawing of ezdxf has 0.005.
- Pucs
Sets the current UCS of paper space, as AutoCAD's
Pucs: its origin and axes written to$PUCSORG,$PUCSXDIRand$PUCSYDIR, as Ucs writes those of model space.
- PucsBase
Gets or sets the name of the UCS the orthographic systems of paper space are taken from (
$PUCSBASE), as AutoCAD'sPucsBasegives its id; null, the world, where the header names none.
- PucsOrthographic
Gets which orthographic system the current UCS of paper space is (
$PUCSORTHOVIEW), as AutoCAD'sPucsOrthographic; NonOrthoView where the header gives none.
- Pucsname
Gets or sets the name of the current UCS of paper space (
$PUCSNAME), as AutoCAD'sPucsnamegives its id; null where the header names none.
- Pucsorg
Gets the origin of the current UCS of paper space (
$PUCSORG), as AutoCAD'sPucsorg; the origin where the header gives none.
- Pucsxdir
Gets the X axis of the current UCS of paper space (
$PUCSXDIR), as AutoCAD'sPucsxdir; the world's X axis where the header gives none.
- Pucsydir
Gets the Y axis of the current UCS of paper space (
$PUCSYDIR), as AutoCAD'sPucsydir; the world's Y axis where the header gives none.
- Qtextmode
Gets or sets whether texts are drawn as their boxes alone (
$QTEXTMODEof 1), as AutoCAD'sQtextmode; false where the header gives none.
- Regenmode
Gets or sets whether the drawing is regenerated as it changes (
$REGENMODEof 1), as AutoCAD'sRegenmode; true where the header gives none.
- Saveproxygraphics
Gets or sets whether the pictures of the objects of other applications are saved with them (
$PROXYGRAPHICS), as AutoCAD'sSaveproxygraphics: 1 they are, 0 they are not; 1 where the header gives none.
- SectionViewStyle
Gets or sets the section view style new section views take (CVIEWSECTIONSTYLE), as AutoCAD's
SectionViewStylegives its id, by name; null where the drawing gives none.
- SectionViewStyleDictionary
Gets the dictionary of section view styles (ACAD_SECTIONVIEWSTYLE), as AutoCAD's
SectionViewStyleDictionaryIdnames it; null where the drawing has none.
- Shadedge
Gets or sets how faces are shaded when the drawing is shaded the old way (
$SHADEDGE), as AutoCAD'sShadedge: 0 faces lit, no edges; 1 faces lit, edges in the background colour; 2 faces in the background colour, edges in their own; 3 faces in their own colour, edges in the background colour; 3 where the header gives none.
- Shadedif
Gets or sets how much of the light of the old way of shading is diffuse rather than ambient (
$SHADEDIF), as AutoCAD'sShadedif, in per cent: 0 to 100; 70 where the header gives none.
- ShadowPlaneLocation
Gets or sets the height of the plane shadows fall on when the ground casts them (
$SHADOWPLANELOCATION), as AutoCAD'sShadowPlaneLocation, in drawing units; nought where the header gives none.
- ShowHist
Gets or sets whether the history of bodies is shown (
$SHOWHIST), as AutoCAD'sShowHist: 0 never, 1 as each body says, 2 always; 1 where the header gives none.
- Sketchinc
Gets or sets the length of each piece a sketch is drawn with (
$SKETCHINC), as AutoCAD'sSketchinc, in drawing units; 1 where the header gives none.
- Skpoly
Gets or sets whether a sketch is drawn as polylines (
$SKPOLYof 1) rather than lines, as AutoCAD'sSkpoly; false where the header gives none.
- SolidHist
Gets or sets whether new bodies keep the history of how they were made (
$SOLIDHIST), as AutoCAD'sSolidHist: 0 not, 1 they do; 0 where the header gives none.
- SortEnts
Gets or sets which operations sort the entities by their draw order (
$SORTENTS), as AutoCAD'sSortEnts: a sum of bits, 1 picking, 2 snapping, 4 redrawing, 8 slides, 16 regenerating, 32 plotting, 64 output to PostScript; 127 where the header gives none.
- Splframe
Gets or sets whether the frame of a polyline fitted with a spline, and the hidden edges of 3D faces, are shown (
$SPLFRAMEof 1), as AutoCAD'sSplframe; false where the header gives none.
- Splinesegs
Gets or sets how many segments each piece of a polyline fitted with a spline is drawn with (
$SPLINESEGS), as AutoCAD'sSplinesegs: 8 where the header gives none; below nought, arcs rather than lines.
- Splinetype
Gets or sets the spline a polyline is fitted with (
$SPLINETYPE), as AutoCAD'sSplinetype: 5 quadratic, 6 cubic; 6 where the header gives none.
- StepSize
Gets or sets the length of a step when walking or flying through the drawing (
$STEPSIZE), as AutoCAD'sStepSize, in drawing units: 1E-6 to 1E+6; 100 where the header gives none.
- StepsPerSec
Gets or sets how many steps are taken each second when walking or flying through the drawing (
$STEPSPERSEC), as AutoCAD'sStepsPerSec: 1 to 30; 24 where the header gives none.
- StyleSheet
Gets or sets the plot style table the drawing plots with (
$STYLESHEET), as AutoCAD'sStyleSheet, by the name of its file, asmonochrome.ctb; empty where the header gives none.
- SummaryInfo
Gets or sets the properties of the drawing, as AutoCAD's
SummaryInfo: those of its DWGPROPS, the XRECORD of the named object dictionary AutoCAD keeps them in, its title (group 2), subject (3), author (4), comments (6), keywords (7), who saved it last (8), its revision (9), the base of its hyperlinks (the group 1 after its dates) and its custom properties: eachname=valuein a group 300 to 309, then those of a list after the group 90 that follows the base of the hyperlinks, where one follows it, each a name and a value in two groups 1, then eachname=valuein a group 300 after those, as AutoCAD 2021 saved the eleventh and twelfth of twelve. The base of the hyperlinks is the header's$HYPERLINKBASEwhere that is not empty, as AutoCAD 2021 reads it there. A drawing with no DWGPROPS, as AutoCAD saves one of R2004 or later, gives the texts of its header,$TITLE,$SUBJECT,$AUTHOR,$COMMENTS,$KEYWORDSand$REVISIONNUMBER, and its custom properties, each the value of a$CUSTOMPROPERTYTAGand of the$CUSTOMPROPERTYafter it, in their order: AutoCAD 2021 saved a drawing of R2018 titled Plate B-12, of the custom properties Project and Checked by, with$TITLE,$AUTHORand two such pairs after$DWGCODEPAGE, and no DWGPROPS. Empty where the drawing has none.
- Surftab1
Gets or sets how many faces a ruled or revolved surface is drawn with along M (
$SURFTAB1), as AutoCAD'sSurftab1: 2 to 32 766; 6 where the header gives none.
- Surftab2
Gets or sets how many faces a revolved or edge surface is drawn with along N (
$SURFTAB2), as AutoCAD'sSurftab2: 2 to 32 766; 6 where the header gives none.
- Surftype
Gets or sets the surface a polygon mesh is fitted with (
$SURFTYPE), as AutoCAD'sSurftype: 5 quadratic, 6 cubic, 8 Bezier; 6 where the header gives none.
- Surfu
Gets or sets how many lines a fitted polygon mesh is drawn with along M (
$SURFU), as AutoCAD'sSurfu: 0 to 200; 6 where the header gives none.
- Surfv
Gets or sets how many lines a fitted polygon mesh is drawn with along N (
$SURFV), as AutoCAD'sSurfv: 0 to 200; 6 where the header gives none.
- TStackAlign
Gets or sets how stacked text is aligned (TSTACKALIGN), as AutoCAD's
TStackAlign: 0 bottom, 1 centre, 2 top; 1 where the drawing gives none.
- TableStyleDictionary
Gets the dictionary of table styles (ACAD_TABLESTYLE), as AutoCAD's
TableStyleDictionaryIdnames it; null where the drawing has none.
- Tablestyle
Gets or sets the table style new tables take (CTABLESTYLE), as AutoCAD's
Tablestylegives its id, by name:Standardwhere the drawing gives none.
- Tdcreate
Gets when the drawing was made, in the time of its place (
$TDCREATE), as AutoCAD'sTdcreate, to the millisecond, itsKindUnspecified;default(DateTime)where the header gives none or a time DateTime cannot hold: one before 1 January of the year 1 (the Julian day 1721426), or one rounded past the end of 31 December 9999, whose noon is 5373484.5.
- Tdindwg
Gets how long the drawing has been edited in all (
$TDINDWG, in days), as AutoCAD'sTdindwg, to the millisecond; nought where the header gives none.
- Tducreate
Gets when the drawing was made, in universal time (
$TDUCREATE), as AutoCAD'sTducreate, itsKindUtc;default(DateTime)where the header gives none or a time DateTime cannot hold.
- Tdupdate
Gets when the drawing was last saved, in the time of its place (
$TDUPDATE), as AutoCAD'sTdupdate;default(DateTime)where the header gives none or a time DateTime cannot hold.
- Tdusrtimer
Gets the time the user's timer has run (
$TDUSRTIMER, in days), as AutoCAD'sTdusrtimer, to the millisecond; nought where the header gives none.
- Tduupdate
Gets when the drawing was last saved, in universal time (
$TDUUPDATE), as AutoCAD'sTduupdate, itsKindUtc;default(DateTime)where the header gives none or a time DateTime cannot hold.
- TextStyleTable
Gets the text style table, read, as DxfTextStyleTable says.
- Textsize
Gets or sets the height new texts are given (
$TEXTSIZE): 2.5 where the header gives none.
- Textstyle
Gets or sets the style new texts are written in (
$TEXTSTYLE), by name:Standardwhere the header gives none.
- Thickness
Gets or sets the thickness new entities are given (
$THICKNESS), as AutoCAD'sThickness, in drawing units: a circle of 30 is drawn as a tube 30 high; nought where the header gives none.
- ThumbnailBitmap
Gets the picture of the drawing kept for previews, as AutoCAD's
ThumbnailBitmapgives it as a bitmap: here the bytes of the THUMBNAILIMAGE section, its groups 310 one after another, a bitmap of Windows without the file's header; null where the file has none.
- TileMode
Gets or sets whether model space is the space shown (
$TILEMODEof 1) rather than a layout of paper space, as AutoCAD'sTileMode; true where the header gives none. Set, the variable alone is written: no layout is made current.
- TileModeLightSynch
Gets or sets whether the lighting of model space is that of the layouts (
$TILEMODELIGHTSYNCH), as AutoCAD'sTileModeLightSynch: 0 not, 1 it is; 1 where the header gives none.
- TimeZone
Gets or sets the time zone of the drawing's place (
$TIMEZONE), as AutoCAD'sTimeZone; Pacific where the header gives none.
- Tracewid
Gets or sets the width new traces are given (
$TRACEWID), as AutoCAD'sTracewid, in drawing units; 1 where the header gives none.
- Treedepth
Gets or sets the depth of the tree AutoCAD sorts the drawing's entities into (
$TREEDEPTH), as AutoCAD'sTreedepth: four digits, two for model space and two for paper space; 3020 where the header gives none.
- TstackSize
Gets or sets how high stacked text is, in per cent of the text (TSTACKSIZE), as AutoCAD's
TstackSize: 25 to 125; 70 where the drawing gives none.
- Ucs
Sets the current UCS of model space, as AutoCAD's
Ucs: its origin and axes written to$UCSORG,$UCSXDIRand$UCSYDIR, read back by Ucsorg, Ucsxdir and Ucsydir. A system rotated a quarter turn about Z at (100, 0, 0) writes the axes (0, 1, 0) and (-1, 0, 0). The name of the UCS, Ucsname, is left as it is. A GeoCoordinateSystem3 makes its axes of unit length and square, so a header whose axes are not, read into one and set back, is written with them so:$UCSXDIRof (2, 0, 0) is written (1, 0, 0).
- UcsBase
Gets or sets the name of the UCS the orthographic systems of model space are taken from (
$UCSBASE), as AutoCAD'sUcsBasegives its id; null, the world, where the header names none.
- UcsOrthographic
Gets which orthographic system the current UCS of model space is (
$UCSORTHOVIEW), as AutoCAD'sUcsOrthographic; NonOrthoView where the header gives none.
- UcsTable
Gets the UCS table of the drawing, as AutoCAD's
UcsTableIdgives its id: the named user coordinate systems, as DxfUcsTable says.
- Ucsname
Gets or sets the name of the current UCS of model space (
$UCSNAME), as AutoCAD'sUcsnamegives its id: a record of the UCS table; null where the header names none.
- Ucsorg
Gets the origin of the current UCS of model space (
$UCSORG), as AutoCAD'sUcsorg, in world coordinates; the origin where the header gives none.
- Ucsxdir
Gets the X axis of the current UCS of model space (
$UCSXDIR), as AutoCAD'sUcsxdir; the world's X axis where the header gives none.
- Ucsydir
Gets the Y axis of the current UCS of model space (
$UCSYDIR), as AutoCAD'sUcsydir; the world's Y axis where the header gives none.
- Unitmode
Gets or sets how lengths are shown when typed (
$UNITMODE), as AutoCAD'sUnitmode: 0 as they are shown, 1 as they are typed in; 0 where the header gives none.
- Useri1
Gets or sets the first whole number kept for programs (
$USERI1), as AutoCAD'sUseri1: -32 768 to 32 767; nought where the header gives none.
- Useri2
Gets or sets the second whole number kept for programs (
$USERI2), as AutoCAD'sUseri2: -32 768 to 32 767; nought where the header gives none.
- Useri3
Gets or sets the third whole number kept for programs (
$USERI3), as AutoCAD'sUseri3: -32 768 to 32 767; nought where the header gives none.
- Useri4
Gets or sets the fourth whole number kept for programs (
$USERI4), as AutoCAD'sUseri4: -32 768 to 32 767; nought where the header gives none.
- Useri5
Gets or sets the fifth whole number kept for programs (
$USERI5), as AutoCAD'sUseri5: -32 768 to 32 767; nought where the header gives none.
- Userr1
Gets or sets the first real number kept for programs (
$USERR1), as AutoCAD'sUserr1; nought where the header gives none.
- Userr2
Gets or sets the second real number kept for programs (
$USERR2), as AutoCAD'sUserr2; nought where the header gives none.
- Userr3
Gets or sets the third real number kept for programs (
$USERR3), as AutoCAD'sUserr3; nought where the header gives none.
- Userr4
Gets or sets the fourth real number kept for programs (
$USERR4), as AutoCAD'sUserr4; nought where the header gives none.
- Userr5
Gets or sets the fifth real number kept for programs (
$USERR5), as AutoCAD'sUserr5; nought where the header gives none.
- Usrtimer
Gets or sets whether the user's timer runs (
$USRTIMERof 1), as AutoCAD'sUsrtimer; true where the header gives none.
- Version
Gets the version of AutoCAD the file is written for (
$ACADVER), such asAC1015for R2000; null where the file does not say.
- VersionGuid
Gets or sets the identity of the drawing as last saved (
$VERSIONGUID), as AutoCAD'sVersionGuid: a GUID AutoCAD gives the drawing anew each time it saves it; read as the header writes it, the GUID of noughts where it gives none.
- ViewTable
Gets the VIEW table of the drawing, as AutoCAD's
ViewTableIdgives its id: the named views, as DxfViewTable says.
- ViewportScaleDefault
Gets or sets the scale new viewports are given (
$PSVPSCALE), as AutoCAD'sViewportScaleDefault: paper space units to model space units, so that 0.02 shows a model of millimetres at 1:50 on a sheet of millimetres; nought, scaled to fit, where the header gives none.
- ViewportTable
Gets the VPORT table of the drawing, as AutoCAD's
ViewportTableIdgives its id: the tiled viewports of model space, the snap and the grid of the drawing in its*Active, as DxfViewportTable says.
- Visretain
Gets or sets whether the layers of external references keep the visibility, colour and linetype the drawing gave them (
$VISRETAINof 1), as AutoCAD'sVisretain; true where the header gives none.
- VisualStyleDictionary
Gets the dictionary of visual styles (ACAD_VISUALSTYLE), as AutoCAD's
VisualStyleDictionaryIdnames it; null where the drawing has none.
- Warnings
Gets what was said of reading the text of the file, each a sentence: a file before R2007 whose text is UTF-8, or one in a code page the runtime has not. Empty for most files.
- Worldview
Gets or sets whether a view's direction typed in is read in the world's coordinates (
$WORLDVIEWof 1) rather than the current UCS's, as AutoCAD'sWorldview; true where the header gives none.
- XclipFrame
Gets or sets whether the frames that clip external references are shown and plotted (
$XCLIPFRAME), as AutoCAD'sXclipFrame: 0 hidden, 1 shown and plotted, 2 shown; 1 where the header gives none.
- XrefEditEnabled
Gets or sets whether the drawing may be edited in place when it is an external reference of another (
$XEDITof 1), as AutoCAD'sXrefEditEnabled; true where the header gives none.
- dragvs
Gets or sets the visual style an object is shown in while it is dragged (
$DRAGVS, a handle), as AutoCAD'sdragvsgives its id: a VISUALSTYLE of the drawing's dictionary of visual styles (VisualStyleDictionary); null where the header names none the drawing has.
Methods
- AddMlineStyle(string, DxfMlineStyleSettings)
Adds a style of multilines to the dictionary of multiline styles (MLStyleDictionary) under a name, as AutoCAD adds one made by
new MlineStyle()with its elements set: an MLINESTYLE written as AutoCAD writes one,100 AcDbMlineStyle, its name in capitals (2: AutoCAD keepsghLowasGHLOW), flags (70), description (3), fill (62), angles (51, 52 in degrees), count of elements (71) and each element's offset (49), colour (62) and linetype (6), the elements from the greatest offset to the least. A drawing with no dictionary of multiline styles is given one, ACAD_MLINESTYLE of its named object dictionary.
- AttachXref(string, string)
Attaches another drawing as an external reference, as AutoCAD's
AttachXref: a block of the name given whose BLOCK is flagged an external reference (70 of 4) and names the drawing's path (its 1), with its BLOCK_RECORD from R13 on, and no entities: AutoCAD reads the drawing into it when it opens this one. An INSERT of the block places it, asnew DxfBlockReference(position, xref)appended to model space; until then the block is Unreferenced.
- Audit(bool)
Checks the drawing for errors, as AutoCAD's AUDIT does, and fixes those it can where asked; the report says what was found and what was fixed. A sound drawing gives an empty report.
- BindXref(DxfBlockTableRecord, DxfDatabase, bool)
Binds an external reference, as AutoCAD's
BindXrefsbinds one: its block made an ordinary block, its origin the base point of its drawing ($INSBASE) and its path kept, holding a copy of every entity of that drawing's model space, its INSERTs placing it as they placed the reference; and the records that drawing's entities draw by brought with them. Bound (insertBindfalse), each layer, linetype, text style, dimension style and named block of the drawing comes under the reference's name,\(0\)and its own, the 0 raised past a name the drawing has (GRID$1$WALLwhereGRID$0$WALLis taken), as AutoCAD 2021's -XREF Bind names them; layer 0, Defpoints, ByBlock, ByLayer and Continuous are this drawing's. Inserted (true), each keeps its own name and is merged by name, this drawing's own kept, as Insert(string, DxfDatabase, bool) merges them.
- BorrowFonts(string)
Sets FontSearchPath to a path for as long as the returned scope lives, measuring in one set of fonts that every borrow of that path in this drawing shares, and puts back the path and the fonts the drawing had when the scope is disposed.
- CountEmptyObjects(int)
Counts the empty objects of the drawing, as AutoCAD's
CountEmptyObjects: those of the kinds the flags of DxfEraseFlags name, in model space, paper space and every block, as EraseEmptyObjects(int) would erase them.
- CountHardReferences(IReadOnlyList<DxfDBObject>, int[])
Counts the hard references to objects of the drawing, as AutoCAD's
CountHardReferences, each added to the count of the same place: every hard pointer and hard owner of the drawing that names the object's handle (340 to 349, 360 to 369, 390 to 399, 480 and 481 of every record, an extension dictionary's 360 among them), each handle of extended data of any application (1005, as the overrides of a dimension name its arrow blocks and its text style), the arrow an override of a dimension of R12 names by name (1070 5, 6 or 7, then 1000 the block's name), and each layer a viewport freezes (331); and for a record of a table each group where the DXF writes by name what AutoCAD's database holds as a hard pointer to it: the layer (8) and linetype (6) of every entity, a vertex and an attribute among them, the linetype of a layer and of a multiline style, the text style of a text, of a cell of a table and of a table style (7), the dimension style of a dimension, a leader or a tolerance (3), the block of an INSERT, a dimension or a table (2), a layer a viewport of a drawing before R2000 freezes by name (1003), and the variables of the header that name one ($CLAYER,$CELTYPE,$TEXTSTYLE,$DIMSTYLE,$DIMBLK,$CMLSTYLEand their kin). An entity is owned hard by its block, or by the entity it follows, and counts that one besides.
- DetachXref(DxfBlockTableRecord)
Detaches an external reference, as AutoCAD's
DetachXref: every INSERT of it erased, in model space, paper space and the blocks, then the records it brought, those named after it with a | (the layerCOLUMN|steeland the like, of the layer, linetype, text style, dimension style and block tables), and last its block.
- EraseEmptyObjects(int)
Erases the empty objects of the drawing, as AutoCAD's
EraseEmptyObjects: those of the kinds the flags of DxfEraseFlags name, in model space, paper space and every block, each erased as its own Erase() erases it.
- GetDimstyleData()
Gets the dimension variables new dimensions take, as AutoCAD's
GetDimstyleData: a new DxfDimStyleTableRecord in no table, named as Dimstyle, each of its 74 variables the header's, as the properties of the drawing read them. Of ezdxf's drawing of R2018,Dimasz2.5 andDimdec2.
- GetHeader(string)
Gets a variable of the header by its name, as the file writes it: the groups after its group 9,
$INSUNITSof millimetres the one group 70 of value4,$EXTMINits groups 10, 20 and 30; as last given where it is given twice. After a change, as the drawing would be saved,$HANDSEEDand the extents set as the change needs.
- GetNearestLineWeight(int)
Gets the lineweight of AutoCAD nearest to a weight, as AutoCAD's
GetNearestLineWeight: 0.24 mm, 24, gives LineWeight025; a weight halfway between two the thicker, one above 2.11 mm LineWeight211 and one below nought LineWeight000.
- GetObject(string)
Gets the object of a handle, as AutoCAD's
GetObjectId(false, handle, 0)gives its id: an entity of model space, paper space or a block (a VERTEX of a POLYLINE and an ATTRIB of an INSERT among them), an object of the OBJECTS section, a record of the layer, linetype, text style, dimension style or block table, or one of those five tables; letters of either case the same.db.GetObject("2F")of a drawing whose layer steel has the handle 2F gives that DxfLayerTableRecord.
- GetViewports(bool)
Gets the viewports of the layout the drawing shows, as AutoCAD's
GetViewportsgives their ids: where it shows paper space (TileMode false), the VIEWPORTs of PaperSpace in the order of the file, the one of Number 1 that shows the sheet itself among them, as its layout's GetViewports() gives them. A drawing ezdxf made, shown in paper space with a viewport 1 and one 200 by 150 on its sheet, gives the two.
- GetVisualStyleList()
Gets the names of the drawing's visual styles, as AutoCAD's
GetVisualStyleList: the entries of its dictionary of visual styles (ACAD_VISUALSTYLE) in the order the dictionary holds them,2dWireframe,Conceptualand the rest in a drawing of AutoCAD; empty where the drawing has none.
- Insert(GeoTransform3, DxfDatabase, bool)
Inserts another drawing into this one's model space, as AutoCAD's
Insert(transform, dataBase, preserveSourceDatabase): every entity of its model space copied into this model space and moved by the transformation, as WblockCloneObjects(IEnumerable<DxfEntity>, DxfBlockTableRecord) copies entities together, and its groups with them, each group all of whose entities come under its name, or that name and_1where this drawing has it; and the records of its tables and its named blocks that this drawing has none of the name of, merged by name, this drawing's own kept where it has one: its text styles, linetypes, layers, blocks and dimension styles. Its paper space is not inserted.
- Insert(string, DxfDatabase, bool)
Makes a block of another drawing's model space, as AutoCAD's
Insert(blockName, dataBase, preserveSourceDatabase): a new block of the name given, its origin the other drawing's base point ($INSBASE) and its units the other drawing's ($INSUNITS, from R2007), holding a copy of every entity of that model space, as WblockCloneObjects(IEnumerable<DxfEntity>, DxfBlockTableRecord) copies entities together; and the records of the tables and the named blocks merged by name as Insert(GeoTransform3, DxfDatabase, bool) merges them. An INSERT of the block then places the drawing, as AutoCAD's INSERT of a drawing file does.
- IsValidLineWeight(int)
Gets whether a number is a lineweight DXF writes, as AutoCAD's
IsValidLineWeight: one of AutoCAD's 24 widths, 25 for 0.25 mm, or -1, -2 and -3 for by layer, by block and the default; 24 is not.
- LoadLineTypeFile(string, string)
Loads linetypes from a file of linetypes, as AutoCAD's
LoadLineTypeFileloads them from acad.lin: each linetype of the name given added to the LinetypeTable with its description and dashes, a dash's text or shape with its style, scale, rotation and offset, as DxfLinetypeTableRecord writes them.
- LoadMlineStyleFile(string, string)
Loads a multiline style from a file of them, as AutoCAD's
LoadMlineStyleFileloads one from acad.mln: an MLINESTYLE of the style's groups added to the dictionary of multiline styles (MLStyleDictionary) under its name, as a DxfMlineStyle, written as AutoCAD writes one:100 AcDbMlineStyle, then its name (2), flags (70), description (3), fill (62), angles (51, 52), count of elements (71) and each element's offset (49), colour (62) and linetype (6), as the file gives them. A drawing with no dictionary of multiline styles is given one, ACAD_MLINESTYLE of its named object dictionary.
- Open(Stream)
Opens a DXF file from a stream, from where the stream stands to its end.
- Open(string)
Opens a DXF file from a path.
- OverlayXref(string, string)
Overlays another drawing as an external reference, as AutoCAD's
OverlayXref: as AttachXref(string, string) attaches one, its BLOCK flagged an overlay as well (70 of 12), so that a drawing that references this one does not see it.
- Parse(string)
Opens a DXF file from its text, as ToText() or ToString() gives it.
- Purge(IReadOnlyList<DxfDBObject>)
Keeps of objects those nothing uses, as AutoCAD's
Purgeleaves in its collection the ids that can be erased: each object no hard reference names, as CountHardReferences(IReadOnlyList<DxfDBObject>, int[]) counts them, and that AutoCAD does not keep itself. AutoCAD keeps layer 0 and Defpoints, the linetypes ByBlock, ByLayer and Continuous, the text style Standard and every style of a file of shapes (70 of 1), the dimension style, multiline style, multileader style and table style Standard, the materials Global, ByLayer and ByBlock, the plot style Normal, every visual style, the variables of a dictionary of variables (DICTIONARYVAR) and those of images and of wipeouts, the blocks of the layouts, the external references and every record one brought (a name with a | in it), the tables, the named object dictionary and the dictionaries it names; and an entity, owned by its block, is never one to purge. A layer, a linetype or a block that any pointer of the drawing names, a soft one too, as a 330 of an XRECORD's data, is kept, as its ownEraserefuses it.
- Recover(Stream, out DxfRepairReport)
Opens a damaged DXF file from a stream, from where the stream stands to its end, as Recover(string, out DxfRepairReport) opens one from a path.
- Recover(string, out DxfRepairReport)
Opens a damaged DXF file from a path, as AutoCAD's RECOVER opens one: what can be read of it, repaired, with a report of what was found and done. A sound file is opened as Open(string) opens it, every byte kept, with an empty report.
- RenameMlineStyle(string, string)
Renames a style of multilines, as the Rename of AutoCAD's Multiline Style dialog does: its entry in the dictionary of multiline styles takes the name as given and its record (2) the name in capitals, and every multiline drawn by it, in any block, names it so (its handle, 340, is kept); the current style (CmlstyleID) stays current. A style WALLS renamed to Partitions is written PARTITIONS.
- ResetTimes()
Starts the drawing's times again, as AutoCAD's
ResetTimes: made and last saved now ($TDCREATEand$TDUPDATEin the time of the computer,$TDUCREATEand$TDUUPDATEin universal time, the last two where the file's version has them), edited for no time ($TDINDWG) and the user's timer at nought ($TDUSRTIMER).
- Save(Stream)
Saves the drawing to a stream, where it stands, as Save(string) saves it.
- Save(Stream, string)
Saves the drawing to a stream, where it stands, in a version of AutoCAD, as Save(string, string) saves it.
- Save(string)
Saves the drawing to a path, replacing whatever is there: the bytes read where nothing was changed, and each record not changed, added or erased with its own bytes where something was; a face of a polyface mesh read with AcDbVertex before its AcDbFaceRecord, as GeometryHelper 13.0.0 and 13.1.0 wrote one and AutoCAD 2021 refuses, is written with its own marker alone. Filename is the path from then on, as AutoCAD's
SaveAsmakes it.
- Save(string, string)
Saves the drawing to a path in a version of AutoCAD, as AutoCAD's
SaveAs(path, version)does, replacing whatever is there: R12 (AC1009), R2000 (AC1015), R2004 (AC1018), R2007 (AC1021), R2010 (AC1024), R2013 (AC1027) or R2018 (AC1032). The drawing in the memory stays as it is, of its own version; Filename is the path from then on.
- SaveMlineStyleFile(string, string)
Saves a style of multilines to a file of them, as the Save of AutoCAD's Multiline Style dialog writes acad.mln: the style opened by
MLSTYLE, then its name (2) and its groups (70, 3, 62, 51, 52, 71, and each element's 49, 62 and 6), a code on one line and its value on the next after a space, the angles and offsets with fourteen decimals, and a group 0 after it; the styles the file has already are kept, one of the same name written over. A file that is not there is made. LoadMlineStyleFile(string, string) reads it back.
- SetDimstyleData(DxfDimStyleTableRecord)
Makes the variables of a dimension style those new dimensions take, as AutoCAD's
SetDimstyleData: each that differs from the header's written into it, those it holds already writing nothing; Dimstyle is left as it is. A variable the header of the file's version has not is passed over whatever the record holds, as AutoCAD's SAVEAS to that version leaves it out: DIMDEC in a file of R12, and DIMARCSYM, which a style holds from R2000 and the header from R2007, in one of R2000 (a dimension's and a leader'sSetDimstyleDatarefuse such a variable where the record holds another value than AutoCAD's own). A whole number is checked against AutoCAD's range, as each property checks it. A record that names no text style leaves Dimtxsty as it is. Every value is checked before any is written.
- SetHeader(string, params DxfTypedValue[])
Sets a variable of the header, as the system variables of AutoCAD are set: its groups given in the place of its own, each value in place where the codes are as they were, every other byte of the header kept; added at the end of the header where it has no such variable. Groups the same as the variable's change nothing.
- SetTimeZoneAsUtcOffset(double)
Sets the time zone to the first of AutoCAD's zones of an offset from universal time, as AutoCAD's
SetTimeZoneAsUtcOffset: -7 gives Mountain rather than Arizona or Mazatlan.
- SetWorldPaperspaceUcsBaseOrigin(GeoPoint3, DxfOrthographicView)
Sets the origin of an orthographic UCS of paper space when the base UCS is the world, as AutoCAD's
SetWorldPaperspaceUcsBaseOrigin:$PUCSORGTOPfor the top.
- SetWorldUcsBaseOrigin(GeoPoint3, DxfOrthographicView)
Sets the origin of an orthographic UCS of model space when the base UCS is the world, as AutoCAD's
SetWorldUcsBaseOrigin:$UCSORGTOPfor the top.
- TimeZoneDescription(DxfTimeZone)
Gets the words a time zone is shown by, as AutoCAD's
TimeZoneDescription: its offset from universal time and its name,(UTC-08:00) Pacificfor Pacific; written by the library, not AutoCAD's own words.
- TimeZoneOffset(DxfTimeZone)
Gets the hours a time zone is ahead of universal time, as AutoCAD's
TimeZoneOffset: 5.75 for Kathmandu, -8 for Pacific; summer time is not counted.
- ToText()
Gets the text of the drawing as it would be saved, read as DxfReader reads it from its bytes: UTF-8 from R2007 on, the code page of its header before, the mark of UTF-8 at its start left out.
- TryGetObject(string, out DxfDBObject)
Gets the object of a handle, as GetObject(string) finds it; false, with null, where the drawing has none of the handle, the handle is not hexadecimal, or the object is erased.
- UpdateExt(bool)
Works the extents of model space and paper space out anew, as AutoCAD's
UpdateExt:$EXTMINand$EXTMAXthe box of the GeometricExtents of every entity of model space,$PEXTMINand$PEXTMAXthat 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.
- WblockCloneObjects(IEnumerable<DxfEntity>, DxfBlockTableRecord)
Copies entities of this drawing into a block of another drawing, or of this one, together, as AutoCAD's
WblockCloneObjectscopies the objects of ids: each as Clone() copies it, added to the block as AppendEntity(DxfEntity) adds one, with what it brings (its layer, linetype, text and dimension styles, the blocks it is drawn by); and what one of them points to among the others pointing to the copy of that other, as AutoCAD's map of ids keeps it across the objects copied together.
- WorldPaperspaceUcsBaseOrigin(DxfOrthographicView)
Gets the origin of an orthographic UCS of paper space when the base UCS is the world (
$PUCSORGTOPto$PUCSORGBACK), as AutoCAD'sWorldPaperspaceUcsBaseOrigin; the origin where the header gives none.
- WorldUcsBaseOrigin(DxfOrthographicView)
Gets the origin of an orthographic UCS of model space when the base UCS is the world (
$UCSORGTOPto$UCSORGBACK), as AutoCAD'sWorldUcsBaseOrigin; the origin where the header gives none.