Table of Contents

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

document CadDocument

The document.

layer string

The name of the layer.

frozen bool

Whether new viewports freeze it.

name string

The name of the undo step.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document is null.