Class DxfLayerFilter
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A layer filter of a drawing, as AutoCAD's LayerFilter: its name, the filter it is nested in and those nested in
it; read, not changed.
public sealed class DxfLayerFilter
- Inheritance
-
DxfLayerFilter
- Inherited Members
Remarks
The root, All, is made by AutoCAD, not kept in the drawing: it is not deleted or renamed. Nested in it are the named filters the drawing keeps, as AutoCAD 2021 lists them: first those of the dictionary ACLYDICTIONARY of the layer table's extension dictionary, where AutoCAD 2005 and later keep property filters and groups, each an XRECORD named by its group 300, in the order of the dictionary; then those of ACAD_LAYERFILTERS, the dictionary of AutoCAD 2004 and earlier, named by their entries, where ACLYDICTIONARY has none of the name (AutoCAD keeps a property filter in both); last the three AutoCAD makes, All Used Layers, Unreconciled New Layers and Viewport Overrides. A drawing with the property filter GH_STEEL and the group GH_NOTES gives those two, then the three.
What a filter lets through (AutoCAD's FilterExpression, group 301 of a property filter's XRECORD), the layers of
a group (its 330s), the filters nested deeper and the filter that is current are not read, and a filter is not added,
changed or deleted here.
Properties
- AllowDelete
Gets whether the filter may be deleted, as AutoCAD's
AllowDelete: false for a filter AutoCAD makes, true for one the drawing keeps.
- AllowRename
Gets whether the filter may be renamed, as AutoCAD's
AllowRename: false for a filter AutoCAD makes, true for one the drawing keeps.
- DynamicallyGenerated
Gets whether AutoCAD makes the filter rather than the drawing keeping it, as AutoCAD's
DynamicallyGenerated: true for the root, All, and the three nested in it that AutoCAD makes.
- Name
Gets the name of the filter, as AutoCAD's
Name: All for the root, else the name of its entry.
- NestedFilters
Gets the filters nested in this one, as AutoCAD's
NestedFilters, in the order of the record; empty for one with none.
- Parent
Gets the filter this one is nested in, as AutoCAD's
Parent; null for the root.
Methods
- ToString()
Gives the filter as a line for debugging: its name.