Layers
The layer table: create, enumerate, and per-layer state (colour, linetype, on/off, freeze, lock).
30 functions.
CadAddLayerCreates a new layer and returns its handle.
CadLayerCountEntitiesReturns the number of layers.
CadLayerGetColorReturns the colour of the layer.
CadLayerGetDeletedReturns the deleted of the layer.
CadLayerGetDescrDescription (caller-owned buffer for the getter, Vecad style).
CadLayerGetDescrLenReturns the description length of the layer.
CadLayerGetFirstEntityLayer-scoped entity iteration (entities whose layer == this layer).
CadLayerGetIDReturns the i d of the layer.
CadLayerGetLevelReturns the level of the layer.
CadLayerGetLinetypeIDReturns the linetype i d of the layer.
CadLayerGetLineweightReturns the lineweight of the layer.
CadLayerGetLockReturns the lock of the layer.
CadLayerGetNameReturns the name of the layer.
CadLayerGetNextEntityReturns the layer entity following the given one during enumeration.
CadLayerGetPrintableReturns the printable of the layer.
CadLayerGetUserDataReturns the user data of the layer.
CadLayerGetVisibleReturns the visibility of the layer.
CadLayerPurgeDeletes the layer if it is empty and unreferenced.
CadLayerPutColorSets the colour of the layer.
CadLayerPutDescrSets the description of the layer.
CadLayerPutLevelSets the level of the layer.
CadLayerPutLinetypeIDSets the linetype i d of the layer.
CadLayerPutLineweightSets the lineweight of the layer.
CadLayerPutLockSets the lock of the layer.
CadLayerPutNameSets the name of the layer.
CadLayerPutPrintableSets the printable of the layer.
CadLayerPutUserDataPer-layer user data.
CadLayerPutVisibleSets the visibility of the layer.
CadLayerTreeCreateCreates the layer-tree dock panel inside a host panel.
CadSortLayersSorts the layer table by name.