Shape Home

A shape is a group of simple entities that acts as a single entity. There are types of entities that can be grouped into a shape: Line, Polyline, Rectangle, Circle, Arc, Ellipse.
In order a shape can be filled, all grouped entities must make closed contours.

To add a shape into a drawing use following functions:

Function Meaning
lcBlockBeginShape Indicates start of shape definition
lcBlockAddShape Makes a shape from entities added into a block after lcBlockBeginShape function
lcBlockAddShapeSel Makes a shape from selected entities
lcShapeAddEnt Adds an entity into a shape
lcShapeEnd Updates a shape after adding entities

In order to create Shape from selected entities, use command LC_CMD_SHAPE

More shape specific functions:

Function Meaning
Used to sequentially retrieve all entities from a shape

A shape has properties and functions derived from base class and the following specific properties:

Property Type Access Meaning
LC_PROP_ENT_...    Base class properties
LC_PROP_SHAPE_NENTS int R Number of entities
LC_PROP_SHAPE_NPATHS int R Number of paths

Code samples

  Create shape entity 1
  Create shape entity 2
  Create shape entity 3
  Create shape entity from polylines
  Create shape entity with hatch filling
  Create shape entity from selected entities
  Create shape entity from marked entities
  Enumerate entities inside of a shape