sharpooth Posted July 19, 2011 Posted July 19, 2011 Hi guys, I am tring to understand input information of (grread t) on 3d Mouse. (defun c:go () (setq check 0) (while (= check 0) (setq dr (grread t)) (if (atom (nth 1 dr)) (progn (princ (strcat "\n" (rtos (nth 0 dr) 2 0) "-" (rtos (nth 1 dr) 2 0))) ) (progn (princ (strcat "\n" (rtos (nth 0 dr) 2 0) ", " (rtos (car (nth 1 dr)) 2 0) "," (rtos (cadr (nth 1 dr)) 2 0) "," (rtos (caddr (nth 1 dr)) 2 0) " " )) );progn );if ) ) the result is 2-39 2-95 2-51 2-100 2-120 2-109 2-111 2-118 2-101 2-32 5, 2070,842,0 2-39 2-95 2-51 2-100 2-120 2-109 2-111 2-118 2-101 2-32 2 is for 3D mouse 5 is for 2D mouse For now OK but why (grread t) replays meny times 2-39 2-95 2-51 2-100 2-120 2-109 2-111 2-118 2-101 2-32 ? Does not matter how to twist left/right, move left/right/up/down on this 3D mouse? Quote
sharpooth Posted July 19, 2011 Author Posted July 19, 2011 Hi Lee, I copied one to one content of autocad text screen.You are right that 2 is keyboard input. I am runnig on Win XP/32bit , autocad 2009. The 3D mouse is 3Dconnexion- the simples with two buttons. Else under AutoCad 2009 it is working perfect - zoom, pan, move and so on. May be (grread) can not read correctly from this device. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.