SE_shape_generate_from_part |
Generates a new shape from the specified part of a shape.
LONG SE_shape_generate_from_part (const SE_SHAPE src_shape, LONG part_num, SE_SHAPE tgt_shape);
src_shape | A handle to an active shape object containing the part to generate the target shape from |
part_num | The number of the part in src_shape to generate tgt_shape from |
tgt_shape | A handle to an active shape object, returned as the new shape |
Given a shape that contains one or more parts, generates a new shape (tgt_shape) from the specified part number.
SE_SUCCESS
SE_INVALID_PARTNUM
SE_INVALID_SHAPE
SE_INVALID_SHAPE_OBJECT
SE_OUT_OF_CLMEM
SE_READ_ONLY_SHAPE
• If you pass a shape returned from SE_stable_search or SE_stable_get_shape to ‘tgt_shape’, the SE_READ_ONLY_SHAPE error is returned.
• Ignores any CAD data in the source shape, and removes any CAD data in the target shape.
• Part numbers start with 1, not 0.