Virtuoso Layout Editor : moving objects

S

svilen

Guest
Hi,

I want to write a SKILL function in which to move an object that is
selected in a cellView. Does anyone knows once i have the selected
object what property i have to change in order to move it?

Thanks,
Svilen
 
Here is the function that you are looking for:

dbMoveFig(
d_fig
d_cellView
[ l_transform ]
)
=> d_fig / nil

Moves and transforms a figure and places it in a cellview.

Eg.
obj = car(geGetSelSet())
dbMoveFig(obj obj->cellView list(12:20 "R0"))

Will move the selected object 12 units in the x direction and 20 in the
y direction.

regards,
Suresh
svilen wrote:
Hi,

I want to write a SKILL function in which to move an object that is
selected in a cellView. Does anyone knows once i have the selected
object what property i have to change in order to move it?

Thanks,
Svilen
 
Thanks. Do you know how can i sort a list of objects by xCoord?
 
how about his?

(defun sort_by_x_coord (objs)
(sort (lambda (x y) (lessp (xCoord x) (xCoord y)) objs))
 

Welcome to EDABoard.com

Sponsor

Back
Top