SE_shape_get_type

Returns the type of a shape

Usage syntax

LONG SE_shape_get_type (const SE_SHAPE shape, LONG *shape_type);

Parameters
shape A handle to an active shape object
shape_type The type of the shape
Description

SE_shape_get_type returns the enumerated shape type. 

   SG_NIL_SHAPE                       0
SG_POINT_SHAPE                     1
SG_LINE_SHAPE                      2
SG_SIMPLE_LINE_SHAPE               4
SG_AREA_SHAPE                      8
SG_SHAPE_CLASS_MASK              255
SG_SHAPE_MULTI_PART_MASK         256
SG_MULTI_POINT_SHAPE             257
SG_MULTI_LINE_SHAPE              258
SG_MULTI_SIMPLE_LINE_SHAPE       260
SG_MULTI_AREA_SHAPE              264

You can check to see if a shape allows measure or z-coordinates with SE_shape_is_3D and SE_shape_is_measured.

Returns

SE_SUCCESS
SE_INVALID_POINTER

SE_INVALID_SHAPE_OBJECT

Notes

∙  Ignores any CAD data