[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Rotate the UCS and Restore WCS
Tip# 3529 By Alan Praysman On 11-Nov-2010
Rated By 1 users Downloaded : 402
Categories : Other, User Coordinate System
Software type : AutoCAD 2011
Rename File To : UCSRotate.lsp
Rotate the UCS around the z-axis, or restore the WCS if you're not already in it.

If you generally work in the world coordinate system in AutoCAD, but occasionally need to rotate the UCS about the z-axis, this tip from Alan Praysman should help you. Start by loading the LISP file and typing in the command UCSR. This command acts as a toggle: If you are currently in the WCS when you run it, you will be prompted to select two points to define the new x-axis, and the UCS will be rotated about the z-axis. If you are not in the WCS when you run it, then WCS will be restored. You might want to add some code to control the UCSFOLLOW system variable, which determines whether the view changes when the UCS changes. Thanks, Alan.


Average Rating:

User comments