Class DxfLayer
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A layer of the layer table of a DXF file as DxfReader read it: its name, the look it gives the entities on it that take theirs from it, and whether it is shown, frozen, locked and plotted.
public sealed class DxfLayer
- Inheritance
-
DxfLayer
- Inherited Members
Remarks
The layer steel in red, turned off, is Color 1 and IsOff true: the table writes it as the colour -1. A
layer cannot be changed once read, and two layers are the same only where they are one object: it does not compare
its names or numbers.
Properties
- Color
Gets the colour of the layer (group 62), an AutoCAD colour index from 1 to 255, whether the layer is on or off; null where the table gives none, or one outside 1 to 255.
- IsFrozen
Gets whether the layer is frozen (flag 1 of group 70): its entities are not drawn.
- IsLocked
Gets whether the layer is locked (flag 4 of group 70): its entities are drawn and cannot be changed.
- IsOff
Gets whether the layer is turned off, which the table writes as a colour below nought: its entities are not drawn.
- IsPlotted
Gets whether the layer is plotted (group 290); true where the table does not say.
- LineWeight
Gets the lineweight of the layer (group 370) in hundredths of a millimetre, one of AutoCAD's 0 to 211; null where the table gives none, the default (-3), or a number not among AutoCAD's.
- Linetype
Gets the name of the linetype of the layer (group 6), such as
ContinuousorDASHED; null where the table gives none.