This LISP routine from Forrest Judd automates AutoCAD's Dview command with the Twist option. All you have to do is pick a line; the LISP code does the rest, figuring out the angle of the line and using this data to push the Dview command. Load the LISP file, then type in the command DV. Select a line and the view will rotate, making the selected line horizontal. There is no error-checking included, so if something other than a line is selected, it will error out. |