hello, I'm trying to create a lisp for the scale command that works is as follows.
(command "_scale" "0.0" "100.100" "" "0.0" 2 "")
within the lisp is already defined the selection area and the base point for the scale and the scale factor.
Thank you
Solved! Go to Solution.
Solved by hmsilva. Go to Solution.
@marcelogarcia3251 wrote:
hello, I'm trying to create a lisp for the scale command that works is as follows.
(command "_scale" "0.0" "100.100" "" "0.0" 2 "")
within the lisp is already defined the selection area and the base point for the scale and the scale factor.
Hi Marcelo,
let's see if I understood correctly,
Are you trying to scale previously selected objects, without using the command SCALE?
Henrique
I don't think so. I looks like the first two items give a selection window. It should be (command ".scale" "window" '(0 0) '(100 100) ...
@p_mcknight wrote:
I don't think so. I looks like the first two items give a selection window. It should be (command ".scale" "window" '(0 0) '(100 100) ...
Hi p_mcknight,
rereading the OP, I think you might be right.
If your goal is to select and scale objects with the SCALE command, is advisable to ensure that are selected objects, before use the SCALE command, and with graphic selection methods, we have to ensure that the area to select is visible on the screen when we make the selection, if the objects are not visible on screen, will not be selected.
As a demo:
(setq pt1 '(0. 0.) pt2 '(100. 100.) ) (command "_.zoom" "_W" pt1 pt2) (if (setq ss (ssget "_W" pt1 pt2)) (command "_.scale" ss "" "_NON" pt1 2 "") ) (command "_.zoom" "_P")
Hope that helps
Henrique