Hello Guest it is March 28, 2024, 08:28:23 PM

Author Topic: Quicky Wizard and/or Macro variable value viewer function.  (Read 3614 times)

0 Members and 1 Guest are viewing this topic.

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Quicky Wizard and/or Macro variable value viewer function.
« on: February 23, 2015, 03:45:49 PM »
This is a simple Variable value displaying function, that you can display the
values of your variable that are in you Wizard or Macro as they occur.
it will default to a wxMessageBox display or optional MachErr.

The wxMessagebox is used since it is modal, and "stops"
    the program from continuing till you click the OK button.
    The wxMessageBox is the default behaviour, but you can add
    an optional "1" as a third parameter which will send it to
    Mach Error, which is NOT model. So, if you have this function
    in a series it will log to the error history box, but only the
    last error will show in the Mach error.

    Params:
        1st Param is the Variables Name as a String, i.e. myvar would be "myvar".
        2cd Param is the Variable itself, i.e. you would put myvar as param #2.
        3rd Param is optional, and if a 1 is used, will send the data to Mach Err,
        if there is nothing for a 3rd param or other than 1 it will default to
        display in the wxMessageBox.
        NOTE: The wxMessageBox will sometimes appear BEHIND your Mach 4 window!

the .mcs file is setup as a Macro for your testing to see how it works.

Happy Debugging,

Scott
fun times

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Quicky Wizard and/or Macro variable value viewer function.
« Reply #1 on: February 23, 2015, 04:16:04 PM »
Just a Question on that one .COULD the results be piped into the top left corner of the  toolpath dispay ??

(;-) TP

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Quicky Wizard and/or Macro variable value viewer function.
« Reply #2 on: February 23, 2015, 10:05:59 PM »
You have the Source Obi-wan, modify it as you see fit.
Or... as the Hackers say, "Use the source Luke".

Scott
« Last Edit: February 24, 2015, 06:53:13 PM by poppabear »
fun times