Linetype data in LiteCAD LCD file Home

LiteCAD LCD file format

Data Type Amount Description
Int64 1 Unique Identifier. LC_PROP_TABLE_ID
String 1 Name. LC_PROP_TABLE_NAME
String 1 Description. LC_PROP_TABLE_DESCR
Int32 1 Flags
Int32 1 Sort priority. LC_PROP_TABLE_PRIORITY

   Application-specific data. LiteCAD don't uses this data, only provides access and storage
Int32 5 Application-specific integer values. LC_PROP_TABLE_INT0...LC_PROP_TABLE_INT4
Double 5 Application-specific floating-point values. LC_PROP_TABLE_FLOAT0...LC_PROP_TABLE_FLOAT4

   The below 2 records are exist if (Flags & 0x40000000)
Int32 1 Size (N) of application-specific XDATA buffer (number of bytes). LC_PROP_TABLE_XDATASIZE.
Byte N Application-specific XDATA buffer. LC_PROP_TABLE_XDATA

   Linetype data
String 1 Linetype definition in a text form.   LC_PROP_LINETYPE_DATA
Double 1 Scale of linetype.   LC_PROP_LINETYPE_SCALE
Int8 1 Number (N) of linetype elements.   LC_PROP_LINETYPE_NELEM
N Linetype element

Linetype element

Data Type Amount Description
Double 1 Length of element.   LC_PROP_LTELEM_LEN
Int8 1 Element type: 0-simple, 1-symbol, 2-text, and 0x80 - absolute rotation angle

If <Element type> is 0 - end of element block.

If <Element type> & 1 then
Data Type Amount Description
Int16 1 Symbol's Code.   LC_PROP_LTELEM_TEXT (only first symbol)
String 1 Font name.   LC_PROP_LTELEM_FONTNAME
else
Data Type Amount Description
Stringe 1 Element's Text.   LC_PROP_LTELEM_TEXT
String 1 Text style name.   LC_PROP_LTELEM_STYLE
endif

Data Type Amount Description
Double 1 X offset.   LC_PROP_LTELEM_X
Double 1 Y offset.   LC_PROP_LTELEM_Y
Double 1 Scale.   LC_PROP_LTELEM_SCALE
Double 1 Rotation angle in radians.   LC_PROP_LTELEM_ANGLE