- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there,
I recently upgraded to Civil 3D 2022 and am trying to use an old LISP routine that would allow you to rotate the viewport by running the command 'DVTW' then you select the angle by choosing two points along a line, and then the viewport would be rotated nicely.... now I get an error " Error: AutoCAD variable setting rejected: "cmdecho" nil"
here is the code for reference...
; simple dview twist
;
(defun *error* (msg)
(princ "\nError: ")
(princ msg)
(terpri)
(princ)
)
(defun c:dvtw (/ cmde twa sna)
(princ "Pick 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)
(setvar "cmdecho" cmde)
(princ)
)
Can anyone provide a fix? I am not the best at coding!
thanks
Solved! Go to Solution.