Table of Contents

Class CadSnapRequest

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

What a CadSnapFinder is given: the entity under the aperture and where the cursor is.

public sealed class CadSnapRequest
Inheritance
CadSnapRequest
Inherited Members

Properties

Aperture

Gets how near a point must lie to the cursor to be taken, in drawing units: the aperture in pixels over the pixels a unit is drawn.

BasePoint

Gets the point the rubber band is drawn from, as the built-in perpendicular works from it; null for none.

BlockReferences

Gets the handles of the block references the entity is in, the outermost first; empty for an entity of the space. The circle above, in a block B put by the reference 2A, gives ["2A"]; a block C put by 3F and holding the reference 41 of B gives ["3F", "41"].

Cursor

Gets the cursor, in the world coordinates of the space shown.

Document

Gets the drawing; null where the snap was asked without one.

Entity

Gets the entity, which the finder reads and must not change. For an entity in a block it is a copy of it placed where the references draw it, in the world coordinates of the space shown: a circle of radius 10 in a block put at (100, 50) at scale 2 comes as a circle of radius 20 about (100, 50).

Handle

Gets the handle of the entity; for an entity in a block, its own handle in the block.