All Cadcorp SIS API Methods

GetGeomPosFromLength Method

Description

Gets the position a specified length along the geometry of the current open Item.

Syntax

Visual Basic
Public Function GetGeomPosFromLength( _
   ByVal nGeom As Long, _
   ByVal arclen As Double _
) As String

Parameters

nGeom
The index of the geometry component, starting at 0. Use GetNumGeom to get the number of geometry components in an Item.
 
arclen
The length along the geometry component.

Return Type

A comma-delimited string containing the x, y and z co-ordinates of a position along the geometry component. Use SplitPos to get the x, y and z values themselves.

Remarks

Use GetNumGeom to get the number of geometry components in an item.

Items such as blocks, groups, MultiLineStrings, 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.GetGeomPosFromLength (0, 500)