jkleinowski
2005-06-01, 10:23 PM
Hello all,
i am trying to write a code that when run would ask the user to select an object and a reference point then scale the object down by 1/96th on that point and then move onto the next object. i know its a weird one but its a small step for a system i have in drawing risers and i have to do it over 100 times in each job.
can anyone help me with it? here is what i have, i cant figure out why it isnt working.
(defun-q ScaleDown ()
;get object points
(setq ent1 (car (entsel "\nSelect object: ")))
(setq pnt1 (getpoint "\nselect endpoint: "))
;execute command
(command "scale" ent1 pnt1 "1/96")
)
i am trying to write a code that when run would ask the user to select an object and a reference point then scale the object down by 1/96th on that point and then move onto the next object. i know its a weird one but its a small step for a system i have in drawing risers and i have to do it over 100 times in each job.
can anyone help me with it? here is what i have, i cant figure out why it isnt working.
(defun-q ScaleDown ()
;get object points
(setq ent1 (car (entsel "\nSelect object: ")))
(setq pnt1 (getpoint "\nselect endpoint: "))
;execute command
(command "scale" ent1 pnt1 "1/96")
)