Table of Contents

Method AddFrozenInAllViewports

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

AddFrozenInAllViewports(CadDocument, string, string)

Adds a layer frozen in every viewport of every layout there is, as the Layer manager's "New Layer VP Frozen in All Viewports" and VPLAYER Newfrz: of the colour White and the linetype Continuous, as a new layer is, one undo step.

public static CadEditResult AddFrozenInAllViewports(CadDocument document, string layer, string name = "LAYER")

Parameters

document CadDocument

The document.

layer string

The name.

name string

The name of the undo step.

Returns

CadEditResult

What came of it; refused where the name holds a character a layer's cannot (Invalid layer name.) and where the drawing has a layer of the name, either case.

Exceptions

ArgumentNullException

Thrown when the document is null.