What is it you need anyway? tell us the big picture
Registered forum members do not see this ad.
Hi to all,
I want to know what is Lisp of built-in Scale command of AutoCad, I want to use default scale command value 0.8 every time rather than 1.0 (which is default value set by Cad). Where are these default values found in AutoCad.
Thanks.
What is it you need anyway? tell us the big picture
This can do the trick instead of the built-in scale command , and permanently with value 8.0 .
Code:(defun c:Test (/ selectionset intger point) (vl-load-com) ;;; Tharwat 12. march. 2012 ;;; (if (and (setq selectionset (ssget "_:L")) (setq point (getpoint "\n Specify base point :")) ) (repeat (setq intger (sslength selectionset)) (vla-scaleentity (vlax-ename->vla-object (ssname selectionset (setq intger (1- intger))) ) (vlax-3d-point point) 8.0 ) ) (princ) ) (princ) )
- When aim is being settled in my mind , I have to reach it and get it in hand whatever it costs and wherever it is and will never give up . Tharwat said
Hi pBe,
I don't mean to change Cad's standard commands, just wanted to change Scale command's default value 1.0 to 0.8. I am working on too many drawings. All of them were edited to make some changes but now we need some of old data from unchanged drawings and scale them a little bit like 0.8. Tharwat made a Lisp which works as I wanted.
Hope you understand.
Bookmarks