Table of Contents

Method SetCurrent

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetCurrent(CadDocument, string)

Makes a style current (CMLEADERSTYLE), as Set Current does, and gives MLEADERSCALE the style's scale, nought for an annotative style, as AutoCAD 2021 does each time the variable is set, to the style already current too: with MLEADERSCALE set to 2, a style of scale 5 made current gives 5 again. Refused where the drawing has no such style, or cannot hold the variables: a drawing with no CLASSES section to list DICTIONARYVAR in.

public static CadEditResult SetCurrent(CadDocument document, string name)

Parameters

document CadDocument

The document.

name string

The style's name.

Returns

CadEditResult

What came of it.

Exceptions

ArgumentNullException

Thrown when the document is null.