Search the Community
Showing results for tags 'snapang'.
Found 2 results
Pugazh posted a topic in AutoLISP, Visual LISP & DCL(defun RtoD (nbrOfRadians) (/ (* nbrOfRadians 180.0) pi) ) (defun DtoR (nbrOfDegrees) (* (/ nbrOfDegrees 180.0) pi) ) (if (>= (cvunit (getvar 'snapang) "radians" "degrees") 180.0) (setvar 'snapang (- (cvunit (getvar 'snapang) "radians" "degrees") 180.0)) ) Hi, i think this code is totally wrong please help me!
Sandervp posted a topic in AutoCAD 2D Drafting, Object Properties & InterfaceIs it possible to use a command or button when you are drawing something? For example; I've made a toolbar for changing the polar angle into different angles. One for 30 degrees, one for .... degrees, etc. If I am drawing a polyline, and I need to change this angle, I can not use any button from this toolbar, otherwise the command stops. I can use the polar button to change the angle, at the bottom of the screen, between the other status toggles. I can use these status toggles any time. But because I need to switch very often, it takes a lot of time to use this. I also want to use the "snapang" command during this (or an other) command. If I need to change the angle of the polyline, just select 2 magnet points and my angle is oke. At this moment, I need draw the first part of a polyline, folowing change the snapang angle, draw the second part of the polyline and at last, use "pedit" to join the 2 polyline parts together. In short; I want to change my toolbar buttons so I can use them just like the status toggles. Usable at any time. Thank for your advice or solution.