Gadget and Lua, ToolpathManager() Data Extraction.

This forum has been created for users to submit suggestions for Gadgets
Post Reply
Francis
Posts: 8
Joined: Tue Aug 03, 2021 7:28 pm
Model of CNC Machine: OMIOCNC, X6-2200L-USB

Gadget and Lua, ToolpathManager() Data Extraction.

Post by Francis »

Help required:

I am playing with Lua and finding it Very Difficult Extracting Tool, and Toolpaths information.
So far I have managed to get some data, but there is several other bits I am missing:

local TPM = ToolpathManager() ?
how do I find out all the options to extract information?

toolpath, pos = TPM:GetNext(pos)
tool = toolpath.Tool
local mgr = Toolpath

local Stepdown = Format(mgr.Tool.Stepdown,2)

local tpstats = mgr:Statistics()
local tpmaxdepth = Format(tpstats.MinimumZ,2)

however there are many other Entrees id like to get.
I want { Cutting Depths: Start Depth (D)
local tpmaxdepth = Format(tpstats.?????Z,2)

Can anyone enlighten me Please.

User avatar
Adrian
Vectric Archimage
Posts: 14544
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Adrian »

Did you spot this section in the documentation?
For the initial release, the ToolpathManager is only used to create new
toolpaths, load templates and recalculate all toolpaths, for future releases Vectric may offer more
access to existing toolpaths depending on demand.

User avatar
adze_cnc
Vectric Wizard
Posts: 4325
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008
Location: Vancouver, BC, Canada

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by adze_cnc »

...and that disclaimer has been in the SDK docs since at least November 2013...

User avatar
jimandi5000
Vectric Wizard
Posts: 1050
Joined: Wed Mar 11, 2015 6:50 pm
Model of CNC Machine: Home Made 60 x 120
Location: North Houston Tx.
Contact:

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by jimandi5000 »

Francis wrote:
Wed Mar 29, 2023 6:30 pm
Help required:

I am playing with Lua and finding it Very Difficult Extracting Tool, and Toolpaths information.
So far I have managed to get some data, but there is several other bits I am missing:

local TPM = ToolpathManager() ?
how do I find out all the options to extract information?

toolpath, pos = TPM:GetNext(pos)
tool = toolpath.Tool
local mgr = Toolpath

local Stepdown = Format(mgr.Tool.Stepdown,2)

local tpstats = mgr:Statistics()
local tpmaxdepth = Format(tpstats.MinimumZ,2)

however there are many other Entrees id like to get.
I want { Cutting Depths: Start Depth (D)
local tpmaxdepth = Format(tpstats.?????Z,2)

Can anyone enlighten me Please.
I would think it would be easier to just to write your own Toolpath (g-code) tool. What way you avoid copyright and paten issues.
Thanks,
Jim

Francis
Posts: 8
Joined: Tue Aug 03, 2021 7:28 pm
Model of CNC Machine: OMIOCNC, X6-2200L-USB

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Francis »

In a Gadget i am creating, i have managed to retrieve:

-- PathName
-- ToolName
-- ToolNumber
-- ToolDia
-- ToolRPM
-- ToolPlunge
-- ToolPlungeFeed
-- ToolStepdown
-- ToolZDepth
-- ToolPathNote
-- ToolCycleTime
-- ToolNote

In a Gadget How do I find out if a Toolpath is in a Group?
And how do I get the GroupName?

Francis
Posts: 8
Joined: Tue Aug 03, 2021 7:28 pm
Model of CNC Machine: OMIOCNC, X6-2200L-USB

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Francis »

Dear Admin,
The SDK manual has never been updated, its Only had a Later Date inserted.
its as if you do not wish others to HELP improve the software.

User avatar
adze_cnc
Vectric Wizard
Posts: 4325
Joined: Sat Jul 27, 2013 10:08 pm
Model of CNC Machine: AXYZ 4008
Location: Vancouver, BC, Canada

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by adze_cnc »

A request to support@vectric.com is better than a post here.

Francis
Posts: 8
Joined: Tue Aug 03, 2021 7:28 pm
Model of CNC Machine: OMIOCNC, X6-2200L-USB

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Francis »

Dear adze_cnc
I've been trying for 5 years to get HELP from support@vectric.com.

User avatar
Adrian
Vectric Archimage
Posts: 14544
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Adrian »

You won't get help from support for LUA questions only the main software itself. The gadget side of things is user supported AFAIK.

wb9tpg
Vectric Wizard
Posts: 456
Joined: Tue Sep 04, 2018 2:49 pm
Model of CNC Machine: Shapeoko 3 XL

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by wb9tpg »

Adrian wrote:
Mon Apr 03, 2023 5:27 pm
You won't get help from support for LUA questions only the main software itself. The gadget side of things is user supported AFAIK.
That's useless as Vectric writes the code that we call using LUA and it's next to impossible to use unless they release the documentation.

I'm specifically talking about the LUA Postprocessor API. I'd love to see the methods and parameters.
Gary Mitchell
Kentucky, USA

User avatar
Adrian
Vectric Archimage
Posts: 14544
Joined: Thu Nov 23, 2006 2:19 pm
Model of CNC Machine: ShopBot PRS Alpha 96x48
Location: Surrey, UK

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Adrian »

I may be wrong hence the "as far as I know" but I distinctly remember a post about it a few years ago but of course I can't find it now I need it.

Francis
Posts: 8
Joined: Tue Aug 03, 2021 7:28 pm
Model of CNC Machine: OMIOCNC, X6-2200L-USB

Re: Gadget and Lua, ToolpathManager() Data Extraction.

Post by Francis »

Thank You, This Thread is Now Closed. :lol:

Post Reply