Method SetCurrent
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetCurrent(CadDocument, string)
Makes a layer current, as the layer box does; a frozen layer is refused, as AutoCAD refuses it, and a layer of an
external reference (grid|WALL) in the words AutoCAD 2021 refuses CLAYER set to one.
public static CadEditResult SetCurrent(CadDocument document, string name)
Parameters
documentCadDocumentThe document.
namestringThe layer's name.
Returns
- CadEditResult
What came of it.