Hi all,
I have written a custom gadget that does everything I want. My only frustration is a couple of user interactions that I'd like to avoid. The first is when I load a Toolpath Template with layers missing. I'd like to force it to choose "Delete all toolpaths associated with missing layers" without prompting the user. Is that possible? I tried adding the missing layers but leaving them empty, but then the "Recalculate all" fails.
LoadToolpathTemplate with layers missing
- Adrian
- Vectric Archimage
- Posts: 13677
- Joined: Thu Nov 23, 2006 2:19 pm
- Model of CNC Machine: ShopBot PRS Alpha 96x48
- Location: Surrey, UK
Re: LoadToolpathTemplate with layers missing
The Recalculate All shouldn't fail. It should just give a warning that the toolpath won't calculate as there are no related vectors.
Not everything available in the UI is exposed in LUA, When I come across issues like that I use AutoIt code to automate the interface.
Not everything available in the UI is exposed in LUA, When I come across issues like that I use AutoIt code to automate the interface.
Re: LoadToolpathTemplate with layers missing
Thanks Adrian.
You're correct, it doesn't 'fail', but the warning is just as annoying as the 'Missing layers' dialog. Both can be handled with a simple tap of the enter key.
It's a pity there are so many gaps in the Lua API. It could be so much more powerful...
Thanks again for the reply, I'll look into AutoIt....
You're correct, it doesn't 'fail', but the warning is just as annoying as the 'Missing layers' dialog. Both can be handled with a simple tap of the enter key.
It's a pity there are so many gaps in the Lua API. It could be so much more powerful...
Thanks again for the reply, I'll look into AutoIt....