nanoLogika / ACadSvg

C# library to convert AutoCAD drawings from DWG to SVG. AutoCAD files are read using ACadSharp.
GNU Lesser General Public License v3.0
8 stars 2 forks source link

Retrieve Extended-Data properties, fallback to Dimension-Style properties. #58

Closed mme1950 closed 6 months ago

mme1950 commented 7 months ago

Standard properties of a Dimension... entity are specified by the associated DimensionStyle object. The standard values may be overridden by the entity's extended data.

A mechanism to retrieve effective property values, i.e. values from the extended data, if specified, defaulting to the properties of the DimensionStyle, is to be implemented.

Entity's Extended Data Overriding DimensionStyle Properties

Extended data for an etitiy appear as ExtendedDataDictionary. Entries of type ExtendedData refer to an AppId"/>. An ExtendedData entry contains a list of ExtendedDataRecord records. An ExtendedDataRecord contains a Code and a Value. The Code specifies the the data type of the value. An ExtendedDataRecord does not contain any information about purpose of the value.

The ExtendedData may have different structures. ExtendedData of Dimension and Leaderentities contain entries that are organized as follows:

Example: When in AutoCAD for a LEADER a custom arrowsize is set, the value appears in an ExtendedData entry associated with the AppId key having the name ACAD. If an entry with the "type" record containing DSTYLE is found and a record with the group code 41 appears the following record contains the arrow-size value.

mme1950 commented 7 months ago

Concept

mme1950 commented 7 months ago

Special Treatment of Object References

Special Treatment of Index-Color and True-Color Values