![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
We have a very simple application for our machine, and the operators will only need to select from four pre-prepared gcode files. I'd like to simply drop four buttons onto the screen, one for each size variant, and have each one load a pre-set file. I see the OEM code to open a dialog box, but can someone tell me how to directly load a file ? I'm guessing that I need to create a couple of lines of script for the button, but I've experimented with open and load commands, and they are not helping ! Alternatlively, if there is anyone around the Cambridge UK area that is experienced with Mach3 screens/macros/scripts and wants a contract job to create a couple of screens for us I'd sort that out too ! Time is precious right now. Tim |
|
#2
| ||||
| ||||
| Set up your button for VB script, and put this code in the button script. Loadfile("C:\CNC-parts-Files\button.TAP") where button.tap is your g-code file. Credit for this tip goes to Poppabear (Scott) from the Mach Support forum.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#3
| |||
| |||
Thanks for this, my syntax was a little wrong. However, I've been banging my head against this wall for a while now, and can't make it work. If I run the script line from within the button script editor in Mach3 it works fine. If I simply press the button nothing happens. |
|
#4
| |||
| |||
| OK, I've been working on this long enough now. The code works fine from the button on the desktop machien running the system, but will not run from the button on the laptop development environment. I'm not goign to investigate further ! Tim |
|
#5
| ||||
| ||||
| Do you have the driver installed on your laptop? I was testing some screen design work on a laptop without the driver, and was getting all kinds of strange results. Installing the driver got everything working correctly.
__________________ Gerry Mach3 2010 Screenset http://home.comcast.net/~cncwoodworker/2010.html (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
| Sponsored Links |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| MC on network, More than one can open same file! | Per_N | Mastercam | 1 | 03-28-2008 01:48 AM |
| Cant open DXF file with mc9.1 | CATCH22 | Mastercam | 10 | 01-04-2008 02:46 PM |
| CANT OPEN FILE | reedmiles | BobCad-Cam | 1 | 12-13-2007 01:03 PM |
| Please help. I cant open this dxf file. please | nate | BobCad-Cam | 17 | 01-28-2007 06:08 PM |
| Open file parameters | MikeA | Autodesk Software (Autocad, Inventor etc) | 5 | 07-20-2003 05:30 PM |