Method SetDependent
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetDependent(bool, bool)
Marks the linetype as one an external reference brings, as AutoCAD writes the linetypes 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 linetype grid|DASHED of a drawing attached and loaded, and 16 once
it is unloaded.
public void SetDependent(bool dependent, bool resolved)
Parameters
dependentboolWhether the linetype comes from an external reference (flag 16).
resolvedboolWhether that reference is resolved (flag 32); only where it is dependent.
Remarks
A linetype made in code is marked before it is added, so that its table takes its name: new
DxfLinetypeTableRecord { Name = "grid|DASHED" } marked dependent and resolved is written 2 grid|DASHED,
70 48. Its name and the marks agree: a linetype named with a | is dependent, and one without is not.
Exceptions
- ArgumentException
Thrown when the linetype 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 linetype is erased.