All Cadcorp SIS API Methods

GetGeomDim Method

Description

Gets the dimension of the geometry from the current open Item.

Syntax

Visual Basic
Public Function GetGeomDim( _
   ByVal nGeom As Long _
) As Long

Parameters

nGeom
The index of the geometry component, starting at 0.

Return Type

The dimension of the geometry component. For example, a Polygon item is 2-dimensional, a LineString item is 1-dimensional, a Point item is 0-dimensional, etc.

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 nGeomcan 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.GetGeomDim(0)

Evaluates the dimensionality of a single piece of geometry.