PDA

View Full Version : 2010 Changing cross-hair colors when snap is off/on



austin.dumas
2011-12-13, 04:45 PM
Newbie post-er here. Thought I'd throw out an interesting problem. We run a 3rd party program here that sits on top of AutoCAD (similar to Bentley AutoPLANT). In this program, it is very important that SNAP is turned on at all times. However, for whatever strange reason, this 3rd party program will occasionaly turn SNAP off for key functions and not turn it back on (won't call it a bug...more of an inconsistency). I

know one solution is to write some DIESEL code to highlight that the snap is on or off (I.e. one time prompt, some words down at the bottom) but I don't think this is enough. I was thinking something like changing the cross-hairs to be a different colour depending on if the snap is on or off (crosshairs are nice and big as they are set to 100 in this program).

So that is my question. How would I create an event or something would would auto-change the colour of the cross-hairs depending on whether SNAP is turned off or on.

Any help is much obliged. P.S. I'm more compfortable with VB then I am with lisp although others in my office could help me out if lisp is the only solution.

Ed Jobe
2011-12-14, 03:38 PM
You could write a handler for the SysVarChanged event and watch the value of SNAPMODE.