Table of Contents

CadBlockDrag

from OpenCAD2D import CadBlockDrag

class CadBlockDrag(System.Object) ยท CadBlockDrag in the .NET reference

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

Properties and fields

Block

.NET

@property
def Block(self) -> str

Gets the name of the block dragged.

Items

.NET

@property
def Items(self) -> System.Collections.Generic.IReadOnlyList[DisplayItem2]

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

.NET

def Transform(self, cursor: GeoPoint2) -> Affine2

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