Hello Guest it is May 15, 2021, 08:34:28 PM

Author Topic: Exporting tool offset tables?  (Read 2336 times)

0 Members and 1 Guest are viewing this topic.

Exporting tool offset tables?
« on: November 13, 2012, 06:19:48 AM »
Slowly getting to grips with more advanced Mach 3 features and setting up tool offset tables.  Now I also need tool tables for my CAM program, for which I use G Simple (though I'm sure most CAM programs need tool tables.  Is there any easy way to export or copy the tool tables from Mach 3 to avoid having to re-type all the data, does anyone know please?

John.

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Exporting tool offset tables?
« Reply #1 on: November 13, 2012, 10:49:52 AM »
Getting the Mach3 data out is simple enough BUT how are you going to get it into GSimple ? Does it have an import feature for the tool table?

(;-) TP
Re: Exporting tool offset tables?
« Reply #2 on: November 13, 2012, 11:58:14 AM »
If I can get it out of Mach 3 that's a problem I can address!

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Exporting tool offset tables?
« Reply #3 on: November 13, 2012, 12:16:26 PM »
This CB code is from " HENRIK "over at the machYahoo site. It should do as you need. The is also another version in the MACH Tool Box on this site.



Option Explicit
Dim Response As Integer
Dim Path As String
Dim ToolNumber As Integer
Dim ToolDiameter As Double
Dim ToolLength As Double
Dim ToolDescription As String
Dim i As Integer
Path = GetMainFolder & "myTools.txt"
Open Path For Output As #1
Print #1, "Mach3 Tooltable printout" & Date() & " " & Time(Now)
Print #1, ""
Print #1, "Tool:" & Chr(9) & "Diam:" & Chr(9) & "Length:" & Chr(9) & "Description:"
For ToolNumber = 1 To 250
ToolDiameter = GetToolParam(ToolNumber, 1)
ToolLength = GetToolParam(ToolNumber, 2)
ToolDescription = GetToolDesc(ToolNumber)
Print #1, ToolNumber & Chr(9) & ToolDiameter & Chr(9) & ToolLength & Chr(9) & ToolDescription
Next
Response = MsgBox("Your file is at the following location: " & Path, 0)
Close #1
END
Re: Exporting tool offset tables?
« Reply #4 on: November 13, 2012, 12:33:41 PM »
excellent - thanks!