Table of Contents

Class CadBlockEditor

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The Block Editor open on a drawing (BlockEditor): the block it shows, the space that shows it and whether it has changes not saved.

public sealed class CadBlockEditor
Inheritance
CadBlockEditor
Inherited Members

Fields

CurrentDrawing

The name the Edit Block Definition dialog lists first, which opens model space itself.

NotAllowed

What a command that leaves the block says while the editor is open.

Properties

BasePoint

Gets the base point of the block, where the UCS icon stands: the origin of its definition, or the drawing's $INSBASE for <Current Drawing>.

HasUnsavedChanges

Gets whether the block has changes not saved: an edit since it was opened or last saved, or a new block never saved. Undoing back to where it was opened leaves none.

IsCurrentDrawing

Gets whether model space itself is open (<Current Drawing>).

IsNew

Gets whether the block was made by BEDIT and has not been saved yet: closing without saving makes no block.

Name

Gets the name of the block, or CurrentDrawing where model space is open.

Space

Gets the space that shows the block, the document's current space while the editor is open.

VisibilityState

Gets the visibility state the editor shows, as AutoCAD's Visibility State box: the first of the block's when it opens; null for a block of none. The entities another state lists and this one does not are hidden; an entity no state lists, as one drawn in the editor, is shown in every state.

VisibilityStates

Gets the visibility states of the block open, as AutoCAD's Visibility State box lists them, read anew from the block on each call (GetVisibilityStates()); empty for a block of none, or for <Current Drawing>.