Search the Community
Showing results for tags 'variable setting rejected'.
-
Hi, the problem I was facing (and still facing) was that I use my mouse middle button (scroll) as pan when clicked, But it poped out menu for snap overrides, then I resolved this issue by MBUTTONPAN variable by setting its value to 1. Now when I start a new file or a new session it reverts back to snap override menu and I have to again use variable. The changes I am making are not lasting more then a drawing. Can any one tell me what's causing this and how can I resolve this. Once I made a change in variable it should be permanent unit I change it again, but it is not. So does any one have any solutions. I have also tried profile for this case, but same results. Even the changes I have made to FILL or TASKBAR or ZOOMFACTOR and many like this which I am used to are not working more then a drawing. Would appreciate any one's expertise.
- 3 replies
-
- variable
- autocad 2013
-
(and 3 more)
Tagged with:
-
I'm trying to make the layer color switch before it draws a line but when I execute the lisp I get the error code: "Program ERROR: AutoCAD variable setting rejected: "CECOLOR" 7" can anyone tell me why I can't us setvar to change this system variable? (defun c:draw (/ COUNTER color ccolor) (setq ccolor (getvar "cecolor")) (setq color (atoi "7")) (setvar "CECOLOR" color) (setq color "10") (command "line" "0,0" "0,10" "" ) ) I have also tried: (defun c:draw (/ COUNTER color ccolor) (setq ccolor (getvar "cecolor")) (setvar "CECOLOR" 7) (setq color "10") (command "line" "0,0" "0,10" "" ) ) help