schMove
schMove(
d_fig
d_destCV
l_transform
)
=> d_object / nil
Description
Moves the object you specify to a destination cellview. The object location and orientation can be specified before the object is placed at the destination location by the given transformation argument. The copied figure is first rotated and reflected about the origin as specified by the orientation of the transform, then translated by the offset of the transform.
The destination cellview must be editable. This function moves figures between schematic or symbol cellviews only.
Arguments
|
d_fig
|
Figure to move.
|
|
d_destCV
|
Destination schematic or symbol cellview in which to place the object.
|
|
l_transform
|
Specifies the relative location, orientation, and optionally magnification of the moved figure, specified as a list of the form:
( l_offset t_orient [ n_magnification ] )
Where:
l_offset is the offset from the original position expressed as a list of two floats, the first specifying the distance to move in the x direction and the second the distance in the y direction; for example (10.0:5.0).
t_orient specifies the orientation of the moved object and is one of R0, R90, R180, R270, MX, MXR90, MY, MYR90. The value must be enclosed in double quotes.
n_magnification specifies the relative size of the moved object. The default is 1.0 (i.e. the same size as before the move).
|
Value Returned
|
d_object
|
The ID of the figure after it is moved.
|
|
nil
|
Could not move the object.
|
Examples
Moves fig1 to the cellview cv2; the offset for fig1 is 10.0,5.0 and fig1 is rotated 90 degrees from the original orientation. The resulting figId is returned and assigned to fig1.
fig1 = schMove( fig1 cv2 list(10.0:5.0 "R90" ) )
Return to top