Property SummaryInfo
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
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: each name=value in 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 each name=value
in a group 300 after those, as AutoCAD 2021 saved the eleventh and twelfth of twelve. The base of the hyperlinks
is the header's $HYPERLINKBASE where 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, $KEYWORDS and $REVISIONNUMBER, and its custom properties, each the
value of a $CUSTOMPROPERTYTAG and of the $CUSTOMPROPERTY after 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,
$AUTHOR and two such pairs after $DWGCODEPAGE, and no DWGPROPS. Empty where the drawing has none.
public DxfDatabaseSummaryInfo SummaryInfo { get; set; }
Property Value
- DxfDatabaseSummaryInfo
Set in a drawing of R2004 (AC1018) or later, written in its header as AutoCAD 2021 writes a drawing of R2018: each text not empty in its variable,
$TITLE,$SUBJECT,$AUTHOR,$KEYWORDS,$COMMENTSand$REVISIONNUMBER, then a$CUSTOMPROPERTYTAGand a$CUSTOMPROPERTYfor each custom property, as many as there are, after$DWGCODEPAGE, the header's$LASTSAVEDBYmoved among them before$REVISIONNUMBER, its value kept, as AutoCAD 2021 wrote the header of R2004, R2010 and R2018; an empty text has no variable, and the base of the hyperlinks goes to$HYPERLINKBASE. A DWGPROPS the drawing has is taken out, as AutoCAD 2021 saved one of R2018 read with a DWGPROPS without it; who saved it last is not written but kept.Set in a drawing of R13 to R2000, the DWGPROPS written anew, as AutoCAD 2021 writes one of R2000 and reads it back: its marker
DWGPROPS COOKIE(1), the texts, the custom properties in the ten groups 300 to 309 (=where there is none), the time spent on it and the dates it was made and saved (40, 41, 42, those of a DWGPROPS kept, else the header's$TDINDWG,$TDCREATEand$TDUPDATE), the base of its hyperlinks and the count of the custom properties (90), and each after the tenth in a group 300 after the count, as AutoCAD 2021 saved twelve as R2000 and read them back; the groups after those kept as they were. A list of them after the group 90 of two groups 1 each, which AutoCAD 2021 does not read, is written no more. The base of the hyperlinks is written to the header's$HYPERLINKBASEtoo, in a drawing of R2000, and each text the header holds already is set there as well, so that the two agree. A drawing with none is given one, owned by the named object dictionary. Properties the same as the drawing has change nothing, in a drawing of any version.db.SummaryInfo = new DxfDatabaseSummaryInfoBuilder(db.SummaryInfo) { Title = "Plate B-12" }.ToDatabaseSummaryInfo()gives the drawing its title, its other properties kept.
Exceptions
- ArgumentNullException
Thrown when the properties set are null.
- ArgumentException
Thrown when set in a drawing older than R2004 with a custom property whose name has an equals sign in it.
- InvalidOperationException
Thrown when set in a file of R12, or one older than R2004 with no named object dictionary.