Table of Contents

Method SetBlockEditorVisibilityState

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetBlockEditorVisibilityState(string)

Shows another visibility state of the block open in the Block Editor, as AutoCAD's Visibility State box: the entities the state hides are no longer drawn or picked, those it shows and those no state lists are. A view of the block, not an edit of it: nothing is written and no undo step made.

public CadEditResult SetBlockEditorVisibilityState(string state)

Parameters

state string

The name of the state, one of VisibilityStates.

Returns

CadEditResult

What came of it: refused where the editor is not open or the block has no state of the name.

Exceptions

ArgumentNullException

Thrown when the name is null.