Method SetFrozenInNewViewports
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetFrozenInNewViewports(CadDocument, string, bool, string)
Sets whether a layer is frozen in each viewport made from now on, as the New VP Freeze column and VPLAYER Vpvisdflt do (flag 2 of the layer's group 70); the viewports there are now keep their own.
public static CadEditResult SetFrozenInNewViewports(CadDocument document, string layer, bool frozen, string name = "LAYER")
Parameters
documentCadDocumentThe document.
layerstringThe name of the layer.
frozenboolWhether new viewports freeze it.
namestringThe name of the undo step.
Returns
- CadEditResult
What came of it.
Exceptions
- ArgumentNullException
Thrown when the document is null.