Gets the length along the geometry of the current open Item up to a position.
Visual Basic |
---|
Public Function GetGeomLengthUpto( _ ByVal nGeom As Long, _ ByVal arclenStart As Double, _ ByVal x As Double, _ ByVal y As Double, _ ByVal z As Double _ ) As Double |
The measured length, or -1.0. The returned distance in a Cartesian coordinate system is in metres; the returned distance in a spherical coordinate system is in degrees. The returned z value in a spherical coordinate system is in metres above sea level.
Use GetNumGeom to get the number of geometry components in an Item.
The arclenStart argument is useful for geometry which passes through a position more than once, e.g. a figure-of-eight. To handle this situation, call this method repeatedly, using -1.0 for the arclenStart argument for the first call, and the returned value for each subsequent call, until -1.0 is returned.
Whatever the value of the arclenStart argument, the returned value will be the length from the start of the geometry.
Available: GEO MM ME MD OD OM SISpy
Group:
sis.GetGeomLengthUpto(0, -1, 0, 0, 0)
Evaluates the length along a simple geometry from its start up to the origin.
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).