Table of Contents

Class CadInsertRequest

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

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.

public sealed class CadInsertRequest
Inheritance
CadInsertRequest
Inherited Members

Constructors

CadInsertRequest(CadDocument)

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

Properties

Action

Gets or sets what the window's palette was closed with; Cancel until set, OK when a block was chosen.

Document

Gets the document the block is placed in.

Explode

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

FileDialogs

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 Browse for the file to be asked on the command line. True until set.

FileName

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

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

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

Repeat

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

Rotation

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

Scale

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

SpecifyPointOnScreen

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

SpecifyRotationOnScreen

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

SpecifyScaleOnScreen

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