Method GetLayerStateNames
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
GetLayerStateNames()
Gets the names of the layer states, as AutoCAD's GetLayerStateNames(true, true): the entries of the dictionary
of the layer states, in the order of the record, every one, hidden or of an xref.
public IReadOnlyList<string> GetLayerStateNames()
Returns
- IReadOnlyList<string>
The names, a new list; empty where the drawing has no layer state.
GetLayerStateNames(bool, bool)
Gets the names of the layer states, as AutoCAD's GetLayerStateNames: the entries of the dictionary of the
layer states, in the order of the record, a hidden state only where includeHidden says and the
state of an xref only where includeXref says. A state is hidden where flag 0x8000 of the mask of
its XRECORD (group 91) is set, as AutoCAD 2021 saves one of the mask 0x8001; it is of an xref where its name joins the
xref's and the state's by __ and its XRECORD names every layer by name (group 8), none by handle (330), each
a layer of an xref, xref|layer, as AutoCAD keeps the state of an attached xref
(70-b-xref-source__GH_XR_STATE, of the layer 70-b-xref-source|XR_WALLS). Layers by name alone do not
make a state an xref's: AutoCAD 2021 writes a state it imports from a .las file so, XR_DOORS, 0, and
lists it with the drawing's own. A drawing AutoCAD saved with the states GH_PLAN and
GH_NOTES_OFF and the hidden GH_HIDDEN gives the two for (false, false) and all three for (true, false).
public IReadOnlyList<string> GetLayerStateNames(bool includeHidden, bool includeXref)
Parameters
includeHiddenboolWhether the hidden states are given.
includeXrefboolWhether the states of xrefs are given.
Returns
- IReadOnlyList<string>
The names, a new list; empty where the drawing has no layer state.