SE_shape_delete_part

Deletes the specified part of a multipart shape.

Usage syntax

LONG SE_shape_delete_part (SE_SHAPE shape, LONG part_num);

Parameters
shape A handle to an active shape object to delete a part from
part_num The number of the part to delete
Description

Given a shape with one or more parts, deletes the specified part. Any remaining parts in the shape are shifted to replace the deleted part. If the shape contains a single part that was deleted, the shape becomes a nil shape.

Returns

SE_SUCCESS
SE_CAD_EXISTS

SE_INVALID_PARTNUM

SE_INVALID_SHAPE

SE_INVALID_SHAPE_OBJECT

SE_OUT_OF_CLMEM

SE_READ_ONLY_SHAPE

Notes

•  If you pass a shape returned from SE_stable_search or SE_stable_get_shape to ‘shape’, the SE_READ_ONLY_SHAPE error is returned. See ‘Shape table functions’, for more information.

•  If the source shape has a CAD entity, the SE_CAD_EXISTS error is returned.