resto Posted October 6, 2010 Posted October 6, 2010 Hi I want to add a new command in toolbar about scale lie this scale ( enter ) + select object ( enter ) + specify base point ( enter ) + specify scale factor ( 0.99) how can i write this formule in autocad a new command button how can i select object for scale ^C^C_scale 0,0,0 0.99 this is wrong i know can you help me how can i write this formule my english is not good sorry thank you Quote
ReMark Posted October 6, 2010 Posted October 6, 2010 You want help with... 1) Writing the macro. ...and... 2) Creating a toolbar button. Is that correct? Quote
BlackBox Posted October 6, 2010 Posted October 6, 2010 Try this for the predefined value you used as an example: ^C^C^P._scale;\;0,0,0;0.99; Try this for entering the base point, and scale yourself: ^C^C^P._scale;\;\\ Quote
BIGAL Posted October 7, 2010 Posted October 7, 2010 Here a keyboard version just add code to your acaddoc.lsp (defun C:99) (command "scale" "p" "" "0,0,0" 0.5) ) Just select objects then type 99 Not sure about the 0,0,0 point though maybe better is replace 0,0,0 with (getvar "lastpoint") Quote
resto Posted October 7, 2010 Author Posted October 7, 2010 RenderMan i copy this and paste button's formule when i click button it is only write select object after i select and after i specify base point and scale factor. I want when i click button it can start scale function after it can ask me select object after i select object it can be change scale factor ( 0.99) maybe i did something wrong can you tell me again how will be it work ? thank you for your help Quote
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.