Table of Contents

Method SetFrozenInAllViewports

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetFrozenInAllViewports(CadDocument, IEnumerable<string>, bool)

Freezes or thaws layers in every viewport of every layout, as the Layer manager's "VP Freeze Layer in All Viewports" and "VP Thaw Layer in All Viewports".

public static CadEditResult SetFrozenInAllViewports(CadDocument document, IEnumerable<string> layers, bool frozen)

Parameters

document CadDocument

The document.

layers IEnumerable<string>

The names of the layers.

frozen bool

Whether they are to be frozen.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document or the names are null.