Table of Contents

Method OpenBlockEditor

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

OpenBlockEditor(string)

Opens the Block Editor on a block, as BEDIT: the block shown alone in a space of its own, made the current space; a name the drawing has no block of makes a new, empty block, its origin at (0, 0); <Current Drawing> opens model space itself. The selection is let go. The editor works in the World UCS, as AutoCAD's does, and UCS refuses to change it; closing the editor, whichever way, puts the UCS of model space back (CadUcsManager).

public CadEditResult OpenBlockEditor(string name)

Parameters

name string

The name of the block, or CurrentDrawing.

Returns

CadEditResult

What came of it: refused where the editor is open already ("Not allowed in the Block Editor."), a command's group of edits is open, the name is not one AutoCAD takes, or it names a layout, an external reference or an anonymous block.

Exceptions

ArgumentNullException

Thrown when the name is null.