GetGeomLength Method
Description
Gets the length of the geometry from the current open Item.
Syntax
Visual Basic |
---|
Public Function GetGeomLength( _ ByVal nGeom As Long _ ) As Double |
Parameters
- nGeom
- The index of the geometry component, starting at 0.
Return Type
The length of the geometry component.
Remarks
Use GetNumGeom to get the number of geometry components in an Item.
Items such as blocks, groups, MultiLineString, and so on, can be made up of multiple geometry. Therefore the value of nGeom can be greater than 0. Items such as LineString items, polygons, symbols, and so on, are made by a single piece of geometry. Therefore the value would be 0.
Available: GEO D OD OM SISpy
Group:
Example
sis.GetGeomLength(0)
Evaluates the length of a simple item.