Method Shown
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Shown(CadDocument, DxfEntity)
Gets the grips of an entity as a document shows them: those Of(DxfEntity) gives, but for a revision cloud while the document's RevCloudGrips is on, which has the few grips of the shape it goes round. A cloud (a closed polyline of six vertices or more with REVCLOUD's data) round a rectangle (0, 0) to (60, 40) with arcs 10 long has eight: (0, 0), (0, 20), (0, 40), (30, 40), (60, 40), (60, 20), (60, 0) and (30, 0), a vertex grip at each corner and a middle grip at each side in turn from the first vertex. A cloud round the polygon (100, 0), (160, 0), (160, 40), (130, 60), (100, 40) has ten, (130, 60) among them, a corner the arcs cut off. A cloud round a circle has five, its centre and its quadrants to the right, left, above and below. Dragging one draws the cloud again along the new shape (see Drag(CadDocument, string, int, GeoPoint2)); the grips of its vertices come back with REVCLOUDGRIPS 0.
public static IReadOnlyList<CadGrip> Shown(CadDocument document, DxfEntity entity)
Parameters
documentCadDocumentThe document the entity is in.
entityDxfEntityThe entity.
Returns
- IReadOnlyList<CadGrip>
The grips in the order of their indices; empty for an entity with none.
Exceptions
- ArgumentNullException
Thrown when the document or the entity is null.