Tip 2254: Enhanced View Rotate The Enhanced View Rotate macro is from one of Harry's favorite contributors, Leonid Nemirovsky. Just after Harry's last request for more tips, Len sent in a fresh one he had created that day for his own work. This macro will rotate the current view based on the selection of two points defining a line meant to be parallel with the x-axis. Load the LSP code, then type Xpln at the Command line of AutoCAD to activate the command function. You will be prompted for two points: The first is the base point of your new x axis. The second is a point along the positive direction of the x axis. A line is drawn, the user coordinate system (UCS) sets to that new line, the plan view is shown, and the line erases automatically. Nice programming to solve an on-the-job issue. A tip of the hat once again from Harry! |