Description

Adds new manual measurement element to the active image.

Return Type

A McMMFeature object.  

Pointer to new McMMFeature, Nothing if fails

Syntax

object.Add (emmtMeasType, Coords)

The Add Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McMeasurements.
emmtMeasTypeRequired. An enumMMSTypes enumeration, as described in settings.

manual measurement type

CoordsRequired. A Variant value.

a variant value that contains point coordinates. It can be an array of coordinates (X1,Y1,X2,Y2,X3,...) or array of points (p1,p2,...)

Settings

The settings for emmtMeasType are:

ConstantValueDescription
 mmtsLine2

line

 mmtsPointToPoint3

point to point line

 mmtsPolygonalLine4

polygonal line

 mmtsFreehandTrace5

freehand trace

 mmtsPolygon6

polygonal line

 mmtsCircle7

circle

 mmtsBestFitCircle8

best-fit circle

 mmtsPitchWithLine9

pitch with line

 mmtsAngle10

angle

 mmtsManualTag12

manual tag

 mmtsBestFitLine13

best-fit line