SE_shape_duplicate

Copies a source shape to a target shape.

Usage syntax

LONG SE_shape_duplicate (const SE_SHAPE src_shape, SE_SHAPE tgt_shape);

Parameters
src_shape A handle to an active shape object to copy
tgt_shape A handle to an active shape object, returned as a copy of src_shape
Description

Copies the source shape object to the target shape object.

Returns

SE_SUCCESS
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 tgt_shape, the SE_READ_ONLY_SHAPE error is returned.

∙  Copies the CAD data if the source shape has CAD data.