David D Posted May 20, 2011 Posted May 20, 2011 Version Autocad 2010. I have drawings with multiple objects that are in a horizontal line and touching. I want to make 2 buttons that will move each object horizontally by .35 inch, 1 button would move the object left and 1 right. There are 2 pieces of text that go with each object. I would like to select the object and texts and hit the button to have all selected move. My problem is in writing the base point and displacement parts of the macro. I think it would start with "_Move;" but I can't get past that. I used the action recorder to make the macro but can not find a way to convert that to a button. Any help would be appreciatted. Quote
David D Posted May 20, 2011 Author Posted May 20, 2011 Thanks SLW but that much I know. It is how to word the coordinates and other instructions in the macro that I cannot figure out. Quote
SLW210 Posted May 20, 2011 Posted May 20, 2011 Just put in the name of your Action Macro C^C^_ACTMACRO001 "use the name of YOUR macro" Quote
David D Posted May 20, 2011 Author Posted May 20, 2011 Oh sorry, I was trying to copy the contents from the macro recording window. So did it the way you meant but it keeps moving the object that was moved with the recorded macro instead of the one currently selected. Maybe I should try to clarify better? Multiple objects on page, each touching edge of object next to it. I want to pick first object on left, hit button, it moves .35 in to left. Then pick first and second objects on left, they are seperated by .35 in but 2 is still touching 3, hit button, both 1 and 2 move .35 in to left. Then pick 1, 2, and 3 etc. So the button moves whatever I have selected, 1 to ??? objects, any where on the page, and moves them .35 inches in the direction dtermined by the coordinates in the macro. Unless there is a way to alter the recorded macro, which I can not see, I do not think that will help. Quote
BlackBox Posted May 20, 2011 Posted May 20, 2011 I could of swore that Lee had written a routine that would do exactly this type of task. If memory serves, it (the routine) was being used on MText/Text. Quote
David D Posted May 23, 2011 Author Posted May 23, 2011 Problem solved. I was trying to put characters in the macro that were not needed. Had no idea it could be this simple; ^C^CMOVE;0,0;-.35,0 moves selected object(s) left .35 ^C^CMOVE;0,0;.35,0 moves selected object(s) right .35 Quote
BIGAL Posted May 24, 2011 Posted May 24, 2011 (edited) Another soloution to this was posted a few days ago I think in lisp section 5 different ways to do it ! found it http://www.cadtutor.net/forum/showthread.php?59445-Simple-Move-command-question Edited May 24, 2011 by BIGAL 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.