Message 1 of 6
DVIEW Twist + Snapang wrong direction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This LISP routine sets a Dview Twist angle and Snapang. If you type the Dview Twist angle in, it uses the negative of that, but selecting 2 points works correctly. Is there a way to resolve that? Is there a way to also force it to 2 decimal places for the twist angle and snapang and ignore the drawing rotation unit precision? Thanks.
(defun c:DVTW (/ cmde twa sna)
(princ "Pick direction points or enter angle:")
(setq twa (getangle))
(setq sna twa)
(setq twa (angtos twa (getvar "aunits")))
(setq twa (strcat "-" twa))
(command "dview" "" "tw" twa "")
(setvar "snapang" sna)
(command "zoom" "e")
(princ)
)