Table of Contents

Property Layer

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Layer

Gets or sets the layer the entity is on (group 8), as AutoCAD's Layer: the name as the layer table names it, the spaces around it taken off and its escapes (\U+00E9) read as letters; 0 where the record gives none.

public string Layer { get; set; }

Property Value

string

Set, the name of a layer. One the layer table does not list, letters of either case the same, is added to it in the colour 7 with the linetype CONTINUOUS, and the log says so; an entity made in code is given its layer when it is added to a drawing. The vertices and end of a POLYLINE follow it.

Exceptions

ArgumentNullException

Thrown when the name set is null.

ArgumentException

Thrown when the name set is empty, has a space at either end, or has a control character or one of < > / " : ; ? * | = ` in it, which AutoCAD does not take in a name.

InvalidOperationException

Thrown when the entity is erased.