[Search tip detail and code files using keywords, tip number, author name, etc ]
 
Macro for a Quick UCS Align-to-Object Button
Tip# 4340 By Scott Lawson On 21-Jul-2014
5
Rated By 1 users
Categories : User Coordinate System
Software type : AutoCAD 2015
Rename File To : No Files to download.
Add these macros to your menu or tool palette and save time when changing the UCS and when switching back to WCS.

Do you sometimes need to align your coordinate system to rotated objects in order to label or create parallel objects? You can create a quick button macro using the UCS command to accomplish that task in one pick. Here is the macro code:

     ^C^C_ucs;N;OB;

Once you have finished with that temporary rotated system, simply use this other button macro to set it back to world coordinates:

     ^C^C_ucs;W;

This macro works with all recent versions of AutoCAD, Civil 3D, and others.   

Notes from Cadalyst tip reviewer R.K. McSwain: The tip title just about says it all. Add these macros to your menu or tool palette and save time when changing the UCS and when switching back to WCS.        
 

 

Average Rating:
5


User comments
Comment by abbett,scott
Posted on 2014-07-21 13:48:17
I am not using 2015, but in older versions you had to be careful about picking objects to set the rotation of the UCS. On the civil side, lines will have different z values on each end causing the UCS to warp if a line like that is picked. I will state that I use the system described above, but thought I would share that some errors might occur.
Comment by abbett,scott
Posted on 2014-07-21 13:48:21
I am not using 2015, but in older versions you had to be careful about picking objects to set the rotation of the UCS. On the civil side, lines will have different z values on each end causing the UCS to warp if a line like that is picked. I will state that I use the system described above, but thought I would share that some errors might occur.
Comment by BARNHOUSE,DEBBIE
Posted on 2014-07-23 10:02:56
I use this a lot in solid modeling and piping layout. I have my own little tool that I can select and make my life so much easier! Great tip!