CadBlockDefinitionRequest
from OpenCAD2D import CadBlockDefinitionRequest
class CadBlockDefinitionRequest(System.Object) ยท CadBlockDefinitionRequest in the .NET reference
The Block Definition dialog of BLOCK, as data its command and the window share: the window fills it and says what was pressed in CadBlockDefinitionRequest.Action; the command asks the picks and makes the block. A test fills it with no window.
Constructors
__init__
def __init__(self, document: CadDocument) -> None
Makes the request of a document, as BLOCK opens its dialog: Convert to block, Allow exploding, the drawing's units.
Properties and fields
Action
@property
def Action(self) -> CadDialogAction
@Action.setter
def Action(self, value: CadDialogAction) -> None
Gets or sets what the window's dialog was closed with; Cancel until set.
AllowExploding
@property
def AllowExploding(self) -> bool
@AllowExploding.setter
def AllowExploding(self, value: bool) -> None
Gets or sets whether the INSERTs of the block may be exploded (Allow exploding); true until set.
BasePoint
@property
def BasePoint(self) -> GeoPoint3
@BasePoint.setter
def BasePoint(self, value: GeoPoint3) -> None
Gets or sets the base point, in world coordinates; the origin until picked or typed. The block is defined in the axes of the current UCS, turned about this point where the UCS is turned (see BLOCK in the editing guide).
Description
@property
def Description(self) -> str
@Description.setter
def Description(self, value: str | None) -> None
Gets or sets the description of the block.
Document
@property
def Document(self) -> CadDocument
Gets the document the block is made in.
Name
@property
def Name(self) -> str
@Name.setter
def Name(self, value: str | None) -> None
Gets or sets the name of the block, GRID_BUBBLE; up to 255 letters, none of <>/\":;?*|,=`.
ObjectAction
@property
def ObjectAction(self) -> CadBlockObjectAction
@ObjectAction.setter
def ObjectAction(self, value: CadBlockObjectAction) -> None
Gets or sets what becomes of the objects; Convert to block until set, as AutoCAD's dialog opens.
Objects
@property
def Objects(self) -> System.Collections.Generic.IReadOnlyList[str]
@Objects.setter
def Objects(self, value: System.Collections.Generic.IReadOnlyList[str] | None) -> None
Gets or sets the handles of the objects the block is made of, in ordinal order.
OpenInBlockEditor
@property
def OpenInBlockEditor(self) -> bool
@OpenInBlockEditor.setter
def OpenInBlockEditor(self, value: bool) -> None
Gets or sets whether the Block Editor is to open on the block once it is made, as the dialog's "Open in block editor" box says; the window does it.
Redefine
@property
def Redefine(self) -> bool
@Redefine.setter
def Redefine(self, value: bool) -> None
Gets or sets whether a block of the name already defined is to be defined again, as the dialog's question answered Yes.
ScaleUniformly
@property
def ScaleUniformly(self) -> bool
@ScaleUniformly.setter
def ScaleUniformly(self, value: bool) -> None
Gets or sets whether the INSERTs of the block scale it alike along every axis (Scale uniformly).
SpecifyBasePointOnScreen
@property
def SpecifyBasePointOnScreen(self) -> bool
@SpecifyBasePointOnScreen.setter
def SpecifyBasePointOnScreen(self, value: bool) -> None
Gets or sets whether the base point is asked on the command line after OK (Specify On-screen).
SpecifyObjectsOnScreen
@property
def SpecifyObjectsOnScreen(self) -> bool
@SpecifyObjectsOnScreen.setter
def SpecifyObjectsOnScreen(self, value: bool) -> None
Gets or sets whether the objects are asked on the command line after OK (Specify On-screen).
Units
@property
def Units(self) -> DxfUnits
@Units.setter
def Units(self, value: DxfUnits) -> None
Gets or sets the unit of the block, which an INSERT scales to the drawing's; the drawing's own until set.