Table of Contents

Method SetDependent

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetDependent(bool, bool)

Marks the layer as one an external reference brings, as AutoCAD writes the layers of an external reference into the drawing that attaches it: flag 16 of group 70 where it comes from one, and 32 as well where that reference is resolved; AutoCAD 2021 writes 48 for the layer grid|WALL of a drawing attached and loaded, and 16 once it is unloaded.

public void SetDependent(bool dependent, bool resolved)

Parameters

dependent bool

Whether the layer comes from an external reference (flag 16).

resolved bool

Whether that reference is resolved (flag 32); only where it is dependent.

Remarks

A layer made in code is marked before it is added, so that its table takes its name: new DxfLayerTableRecord { Name = "grid|WALL" } marked dependent and resolved is written 2 grid|WALL, 70 48. Its linetype is one of the table's, grid|DASHED marked the same way, or Continuous. Its name and the marks agree: a layer named with a | is dependent, and one without is not.

Exceptions

ArgumentException

Thrown when the layer is resolved and not dependent, or its name has a | in it and it is not dependent, or none and it is.

InvalidOperationException

Thrown when the layer is erased.