YZ Posted August 16, 2010 Share Posted August 16, 2010 I am attempting a macro to change the colour of selected objects. I always want these objects to be sent to the back at the same time. So I wrote the following: ^C^Cchprop color 13;;_ai_draworder _Back p; The p at the end is my attempt at selecting the previous selection set, but I cannot get it to work; it just stays in the command asking for more objects. A right click with the mouse would normally work, but I cannot replicate that in the macro. Even better would be if I could end the button macro having performed the commands but still leaving the objects selected. The problem is that CHPROP and DRAWORDER both cancel the selection set after performing their command. Quote Link to comment Share on other sites More sharing options...
lpseifert Posted August 16, 2010 Share Posted August 16, 2010 try this... ai_draworder wouldn't work here, edit if need be. ^C^C^C^Cselect au \chprop P ;color 13;;draworder P ;Back; Quote Link to comment Share on other sites More sharing options...
YZ Posted August 24, 2010 Author Share Posted August 24, 2010 Wow. How did you get so good at macros? That works perfectly. I admit I left for a couple of days because usually when trying a new macro I need an hour or so to test it thoroughly! Can you explain what the "select au \" is? I do not recognise "au" and I originally did not think that "\" would work for me because there are always a different number of objects, depending on the job, and my experience told me I would need a separate "\" for each one. Quote Link to comment Share on other sites More sharing options...
lpseifert Posted August 25, 2010 Share Posted August 25, 2010 Can you explain what the "select au \" is? Select > Auto > pause for input from Help Auto Switches to automatic selection: pointing to an object selects the object. Pointing to a blank area inside or outside an object forms the first corner of a box defined by the Box method. Box Selects all objects inside or crossing a rectangle specified by two points. If the rectangle's points are specified from right to left, Box is equivalent to Crossing. Otherwise, Box is equivalent to Window. Quote Link to comment Share on other sites More sharing options...
YZ Posted August 26, 2010 Author Share Posted August 26, 2010 Cool. So without the "au" it would only allow for one left-click with the mouse, is that correct? Quote Link to comment Share on other sites More sharing options...
lpseifert Posted August 26, 2010 Share Posted August 26, 2010 I think it acts the same with or without the au. The au is probably in there for legacy purposes... the macro was cut/pasted from an old menu and edited for your use. 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.