[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.
Perform Dview Twist Quickly
Tip# 4050 By Forrest Judd On 19-Jan-2013
Rated By 0 users Downloaded : 1195
Categories : Other, Viewports
Software type : AutoCAD 2013
Rename File To : RotateCameraInViewport.lsp
Select a line to perform AutoCAD's Dview command with the Twist option.

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.


Average Rating:

User comments
Comment by Gonzalez,Jorge
Posted on 2015-07-20 22:46:16
Thanks! works great. to those wanting to use this: the reference line needs to be in modelspace (while in paperspace, double click into viewport to go to modelspace), and it must be a LINE (not a polyline).