Table of Contents

Class CadBlockDrag

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A block INSERT drags with the cursor while it asks where and how to place it, as AutoCAD drags it: the block's display items in its own coordinates, and the transformation that places them with the cursor at a point. At the insertion point the cursor carries the block's base point; at the scale it sets the opposite corner of a unit square (its sides along the UCS axes), or the factor as its distance from the insertion point; at the rotation, the angle from the insertion point. A block drawn about (100, 70), dragged at scale 1 to (500, 500), has its circle about (100, 100) drawn about (500, 530).

public sealed class CadBlockDrag
Inheritance
CadBlockDrag
Inherited Members

Properties

Block

Gets the name of the block dragged.

Items

Gets the display items of the block in its own coordinates, as a space of its own draws them, its attribute definitions left out, as an INSERT shows none of them.

Methods

Transform(GeoPoint2)

Gets the transformation that takes the block's coordinates to where the INSERT would place it with the cursor at a point.