News:

Please note new Forum URL: forum.designcad.com

Main Menu

Getxy problems

Started by RWMURRAY, May 01, 2007, 04:40:51 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

RWMURRAY

???

I'm using the Getxy function inside a basicad macro.  It works fine, acquires and assigns the cursor location to the variables.  While still inside the same macro after I move the cursor to a new location with my mouse, then using the Getxy function inside the same macro I tried to get the new cursor location, it finds the first location.  If I restart the macro in between the funtion works fine but if I keep it running it doesn't change with the mouse.  I've tired zeroing the variables, removing the commas between variables, setting SYS(1) to 0, nothing seems to help. Does anyone have any suggestions.

Thanks

Richard

dcadRob

Sounds like the logic in your macro is wrong. Probably not getting to the getxy line after the first time. If you post the macro maybe we can help you with it. You can try turning trace on with SYS(800) to see which lines your macro is executing if your version of DC supports it.

800 - Macro debug trace mode [0=off, 1=on, 2 = log to file] This function allows you to examine the behavior of all or part of your macro as it executes. The macro will print each line to the debug window as the line is executed. When you set this function's value to 2, DesignCAD will dump the trace results to a log file, appending a .log extension to the macro's name (i.e. "MyMacro.d3m" logs to "MyMacro.d3m.log")

Lar

Your variable statement is probably being left out on the second+ go'rounds so they are still using the original values.

Lar