SE_shape_move_point

Moves all occurrences of a single point to a new location

Usage syntax

LONG SE_shape_move_point (SE_SHAPE shape, SE_SDEPOINT *from_pt, SE_SDEPOINT *to_pt);

Parameters
shape A handle to an active shape object
from_pt Pointer to an SE_SDEPOINT structure that contains the coordinate values of the point to move
to_pt Pointer to an SE_SDEPOINT structure that contains the new coordinate values
Description

SE_shape_move_point changes all occurrences of the user-supplied point values to new coordinate values. This function verifies that the new point location does not cause the shape to violate any entity integrity rules.

The z- and m-values of the SE_SDEPOINT structures are ignored unless the input shape has a z-array and/or a measures array.

Returns

SE_SUCCESS
SE_CAD_EXISTS

SE_COORD_OUT_OF_BOUNDS

SE_FAILURE

SE_INVALID_POINTER

SE_INVALID_SHAPE_OBJECT

SE_OUT_OF_CLMEM

SE_PT_NO_EXIST

SE_READ_ONLY_SHAPE

SE_SHAPE_INTEGRITY_ERROR

Notes

∙  If this function fails, the original shape is unchanged.

∙  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.

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