Saqib_theleo Posted March 12, 2012 Share Posted March 12, 2012 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. Quote Link to comment Share on other sites More sharing options...
pBe Posted March 12, 2012 Share Posted March 12, 2012 What is it you need anyway? tell us the big picture Quote Link to comment Share on other sites More sharing options...
Tharwat Posted March 12, 2012 Share Posted March 12, 2012 This can do the trick instead of the built-in scale command , and permanently with value 8.0 . (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) ) Quote Link to comment Share on other sites More sharing options...
David Bethel Posted March 12, 2012 Share Posted March 12, 2012 Hi to all,Where are these default values found in AutoCad. Thanks. ASAIK, They've always been hard coded into AutoCAD and therefore not negotiable. -David. That is if you are talking about the scale parameter via INSERT command. Quote Link to comment Share on other sites More sharing options...
Saqib_theleo Posted March 12, 2012 Author Share Posted March 12, 2012 This can do the trick instead of the built-in scale command , and permanently with value 8.0 . (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) ) Hi Tharwat, Thanks for your help, yes this is what I needed. I'll add this Lisp in startup suite content in the AutoLisp Loadapplication so that when I use scale command I don't have to write 0.8 every time on every drawing I open. Thanks for your help. Quote Link to comment Share on other sites More sharing options...
Saqib_theleo Posted March 12, 2012 Author Share Posted March 12, 2012 What is it you need anyway? tell us the big picture 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. Quote Link to comment Share on other sites More sharing options...
Saqib_theleo Posted March 12, 2012 Author Share Posted March 12, 2012 ASAIK, They've always been hard coded into AutoCAD and therefore not negotiable. -David. That is if you are talking about the scale parameter via INSERT command. Hi David, Alright no problem if they are unable to change. I wanted to change Scale command's value 1.0 to 0.8. Tharwat made a Lisp which works fine. Thanks. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted March 12, 2012 Share Posted March 12, 2012 Hi Tharwat,Thanks for your help, yes this is what I needed. I'll add this Lisp in startup suite content in the AutoLisp Loadapplication so that when I use scale command I don't have to write 0.8 every time on every drawing I open. Thanks for your help. You're welcome . happy to hear that . Tharwat Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.