Jump to content

Recommended Posts

Posted

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.

Posted

_CUI and choose New command..see Image

Posted

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.

Posted

Just put in the name of your Action Macro C^C^_ACTMACRO001 "use the name of YOUR macro"

Posted

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.

Posted

I could of swore that Lee had written a routine that would do exactly this type of task. :unsure:

 

If memory serves, it (the routine) was being used on MText/Text.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...