Hey guys!
I need your help please.. I'm new to macros and I need a macro which changes the layer of the current selected object(s) in AutoCAD LT..
And optional.. Maybe is it possible to check if an object is already selected with an "if" in the macro?
Please it have to be AutoCAD LT compatible.. No LISP..
Solved! Go to Solution.
Solved by hwalker. Go to Solution.
Hey guys!
I need your help please.. I'm new to macros and I need a macro which changes the layer of the current selected object(s) in AutoCAD LT..
And optional.. Maybe is it possible to check if an object is already selected with an "if" in the macro?
Please it have to be AutoCAD LT compatible.. No LISP..
Use the CHPROP command.
CHPROP
Select objects: LAST 1 found
Select objects:
Enter property to change [Color/LAyer/LType/ltScale/LWeight/Thickness/TRansparency/Material/Annotative]: LAYER
Enter new layer name <STANDARD_TEXT>: REINFORCEMENT
The above changes the layer of the last object drawn
Also see the link below
CHPROP (Command) | AutoCAD 2021 | Autodesk Knowledge Network
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Hi! Thanks for the really fast response.. unfortunately I can't get the macro to work rather I got not enough time to figure out how does this work.. and is there a method to check if on object is already selected or not?
Thanks for your help!
@pendean is the easiest way, but if you really want a macro
^C^C_.select \_.change previous ;properties layer reinforcement;
The above will allow you to select objects until you finish and will then change the layer to "reinforcement". Obviously you need to change "reinforcement" to your layer
Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Can't find what you're looking for? Ask the community or share your knowledge.