SE_shape_get_num_points

Returns the number of points in a shape or a shape part

Usage syntax

LONG SE_shape_get_num_points (const SE_SHAPE shape, LONG part_num, LONG subpart_num, LONG *num_pts);

Parameters
shape A handle to an active shape object
part_num The number of the part
subpart_num The number of the subpart
num_pts The number of points in the shape part or shape
Description

SE_shape_get_num_points returns the number of points in a shape. If part_num is 0, the number of points in the entire shape is returned. If part_num is nonzero and subpart_num is 0, the number of points in the specified part including any subparts is returned. If part_num and subpart_num are nonzero, the number of points in the subpart is returned.

Returns

SE_SUCCESS
SE_INVALID_PARTNUM

SE_INVALID_POINTER

SE_INVALID_SHAPE_OBJECT

Notes

∙  Ignores any CAD data