Table of Contents

CadInsertRequest

from OpenCAD2D import CadInsertRequest

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

The Blocks palette of INSERT, as data its command and the window share: the block chosen (of the drawing, or of another drawing's file) and the insertion options; the command asks what is to be specified on screen and places it.

Constructors

__init__

.NET

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

Makes the request of a document, as INSERT opens its palette: the point asked, scale 1, no rotation.

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 palette was closed with; Cancel until set, OK when a block was chosen.

Document

.NET

@property
def Document(self) -> CadDocument

Gets the document the block is placed in.

Explode

.NET

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

Gets or sets whether the INSERT is exploded once placed (Explode), its attributes coming out as their definitions.

FileDialogs

.NET

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

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

FileName

.NET

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

Gets or sets the drawing file, a DWG or a DXF, the block comes from (Other drawing); null for a block of the drawing. Set when the palette opens, as after Browse… asked on the command line, the palette shows that file's blocks.

Name

.NET

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

Gets or sets the name of the block chosen; for a file, a block of it, or empty to insert the whole file as one block.

Point

.NET

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

Gets or sets the insertion point where it is not asked.

Repeat

.NET

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

Gets or sets whether the block is placed again and again until Enter or Esc (Repeat Placement).

Rotation

.NET

@property
def Rotation(self) -> float
@Rotation.setter
def Rotation(self, value: float) -> None

Gets or sets the rotation where it is not asked, in radians.

Scale

.NET

@property
def Scale(self) -> GeoVector3
@Scale.setter
def Scale(self, value: GeoVector3) -> None

Gets or sets the scale along X, Y and Z where it is not asked; 1, 1, 1 until set.

SpecifyPointOnScreen

.NET

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

Gets or sets whether the insertion point is asked on the command line; true until set.

SpecifyRotationOnScreen

.NET

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

Gets or sets whether the rotation is asked on the command line.

SpecifyScaleOnScreen

.NET

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

Gets or sets whether the scale is asked on the command line.