Description

Add an element to the current marker shape.

Return Type

None  

Syntax

object.AddShapeElement Element, x1, y1, [x2], [y2]

The AddShapeElement Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McGraphObjPoint.
ElementRequired. A mcGraphObjPointShapeElement enumeration, as described in settings.

predefined element to add to this marker.

x1Required. A Single value.

x coordinate of the first point.

y1Required. A Single value.

y coordinate of the first point.

x2Optional. A Single value.

x coordinate of the second point.

y2Optional. A Single value.

y coordinate of the second point.

Settings

The settings for Element are:

ConstantValueDescription
 mcgpsPixel1

Add a single pixel.

 mcgpsLine2

Add a line.

 mcgpsRect3

Add a rectangle.

 mcgpsCircle4

Add a circle.

 mcgpsPoly5

Add a polyline.

Remarks

The second point (x2,y2) is not required when adding a single point (mcgpsPixel). All coordinates are relative to the current position.

Exceptions

An assigned element must be one of the mcGraphObjPointShapeElement values

Notes

when displayed, the coordinates are scaled by the percentage given by the ScalePercent property.