Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: biggermens on August 21, 2019, 03:56:20 PM
-
Looking to see if anyone can help me
I made a little program in VB.NET to make some gcode
I am looking to see if it is possible when i click the save button
it will automatically open my file in Mach4
Would anyone how to do that ??
Thanks
-
Mach4 takes a few command line parameters like the /p for what profile to use and also a /o for which gcode file to load. Your VB script would have to construct a command line with the profile and file.
C:\Mach4Hobby\Mach4GUI.exe /p MyMillProfile /o "C:\Mach4Hobby\GcodeFiles\FileToRun.tap"
-
use the dll option
i use it a lot very powerful
i have "work list" that load the program and run it on 2 computers with 2 mach system(labeling and cnc)
-
This is what i ended up using
Dim p As New ProcessStartInfo
p.FileName = "C:\Mach4Hobby\Mach4GUI.exe" 'Apostrophes in a file path? eek
p.Arguments = " /p Mach4Router /o C:\Mach4Hobby\Subroutines\run.txt "
p.WindowStyle = ProcessWindowStyle.Maximized 'can be hidden
Process.Start(p)
I am guessing the DLL option might work better ??
-
dll work perfect
can do any thing
-
you can see the attach(sorry for the language)
customer even not need see mach interface
then mach write status on text file and i can read it as event in my c#
-
That's Awesome