Table of Contents

CadWriteBlockRequest

from OpenCAD2D import CadWriteBlockRequest

class CadWriteBlockRequest(System.Object) · CadWriteBlockRequest in the .NET reference

The Write Block dialog of WBLOCK, as data its command and the window share: the source, its base point and objects, and the file written.

Constructors

__init__

.NET

def __init__(self, document: CadDocument) -> None

Makes the request of a document, as WBLOCK opens its dialog: Objects, Retain, the drawing's units.

Properties and fields

Action

.NET

@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.

BasePoint

.NET

@property
def BasePoint(self) -> GeoPoint3
@BasePoint.setter
def BasePoint(self, value: GeoPoint3) -> None

Gets or sets the base point of objects written, which comes to the origin of the new drawing.

BlockName

.NET

@property
def BlockName(self) -> str
@BlockName.setter
def BlockName(self, value: str | None) -> None

Gets or sets the block written where the source is a block.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document written from.

FileDialogs

.NET

@property
def FileDialogs(self) -> bool
@FileDialogs.setter
def FileDialogs(self, value: bool) -> None

Gets or sets whether the file box's Browse… shows the window's file dialog, as FILEDIA 1 has it; false, as with FILEDIA 0, the dialog closes with CadDialogAction.Browse for the file to be asked on the command line. True until set.

FileName

.NET

@property
def FileName(self) -> str
@FileName.setter
def FileName(self, value: str | None) -> None

Gets or sets the path of the file written: a DWG of AutoCAD 2018 where it ends in .dwg, else a DXF.

ObjectAction

.NET

@property
def ObjectAction(self) -> CadBlockObjectAction
@ObjectAction.setter
def ObjectAction(self, value: CadBlockObjectAction) -> None

Gets or sets what becomes of the objects; Retain until set, as AutoCAD's dialog opens.

Objects

.NET

@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 written, in ordinal order.

Source

.NET

@property
def Source(self) -> CadWriteBlockSource
@Source.setter
def Source(self, value: CadWriteBlockSource) -> None

Gets or sets where what is written comes from; Objects until set.

Units

.NET

@property
def Units(self) -> DxfUnits
@Units.setter
def Units(self, value: DxfUnits) -> None

Gets or sets the unit of the new drawing ($INSUNITS); the drawing's own until set.