Hello. I'll ask you a question.
I'm really sorry
Not different
We have run 3dorbit with the wp command
And
I want to exit orbit, so I assigned esc2 to the left shortcut button of the mouse
It is not strange.
We can not exit the orbit and only the command is kept
Could you tell me why?
(defun c:wq()
(command "_shademode" "g" "")
(command "_.view" "s" "2" "")
(command "_3dorbit" )
)
(defun c:esc2()
(vl-load-com)
(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(UndoBegin doc)
(command "_shademode" "2d")
(vla-sendcommand doc ( chr 27))
);defun