Is there a way to set the model position in material for a job and a sheet that have been created programatically?
I would need the imported 3d model components to float to top, i.e. set the "Gap above material" to 0.0.
As the CNC wants Z zero to be set to machine bed, currently any imported components float to bottom by default - they're only one third of the height of the material.
Thank you for any suggestions.
Setting the model position in material
-
- Posts: 3
- Joined: Wed Apr 12, 2023 4:54 pm
- Model of CNC Machine: CAMaster PT408
- SteveNelson46
- Vectric Wizard
- Posts: 2282
- Joined: Wed Jan 04, 2012 2:43 pm
- Model of CNC Machine: Camaster Stinger 1
- Location: Tucson, Az.
Re: Setting the model position in material
On the toolpath tab, click on the "Set" button. About 2/3 of the way down the page there is a "Model Position in Material" section. You posted in the Gadget section but this does not require a gadget. It's just a setting in the program.
Steve
- adze_cnc
- Vectric Wizard
- Posts: 4326
- Joined: Sat Jul 27, 2013 10:08 pm
- Model of CNC Machine: AXYZ 4008
- Location: Vancouver, BC, Canada
Re: Setting the model position in material
Create programmatically how?leftcoastcabinets wrote: ↑Mon Apr 17, 2023 5:44 pma job and a sheet that have been created programatically
-
- Posts: 3
- Joined: Wed Apr 12, 2023 4:54 pm
- Model of CNC Machine: CAMaster PT408
Re: Setting the model position in material
From a Lua script / gadget. The whole job is being constructed using a Lua script. I'm trying to have that script set up the material block as well, but it seems this one parameter is not accessible through the Lua interface.adze_cnc wrote: ↑Mon Apr 17, 2023 6:00 pmCreate programmatically how?leftcoastcabinets wrote: ↑Mon Apr 17, 2023 5:44 pma job and a sheet that have been created programatically
-
- Posts: 3
- Joined: Wed Apr 12, 2023 4:54 pm
- Model of CNC Machine: CAMaster PT408
Re: Setting the model position in material
Hi, I'm specifically trying to avoid having to manually set this every time I create a new job from a Lua script, hence posting in the gadget sectionSteveNelson46 wrote: ↑Mon Apr 17, 2023 5:50 pmOn the toolpath tab, click on the "Set" button. About 2/3 of the way down the page there is a "Model Position in Material" section. You posted in the Gadget section but this does not require a gadget. It's just a setting in the program.
- SteveNelson46
- Vectric Wizard
- Posts: 2282
- Joined: Wed Jan 04, 2012 2:43 pm
- Model of CNC Machine: Camaster Stinger 1
- Location: Tucson, Az.
Re: Setting the model position in material
I've never done any programming in LUA so I can't really help you there. I've looked and a few of the function calls but that's the extent of it. You can't do anything with a gadget that can't be done in the regular interface and I have never had the need to automate anything that hasn't already been done.
Last edited by SteveNelson46 on Mon Apr 17, 2023 8:09 pm, edited 1 time in total.
Steve
- adze_cnc
- Vectric Wizard
- Posts: 4326
- Joined: Sat Jul 27, 2013 10:08 pm
- Model of CNC Machine: AXYZ 4008
- Location: Vancouver, BC, Canada
Re: Setting the model position in material
As you have discovered not everything in the VCarve / Aspire interface is accessible by the gadget API and this would be one of those things.
If you think it should be then a request for inclusion to: support@vectric.com would be the next step. But, since the only thing added since 2013 is limited support for sheets and the new tool database format I wouldn't expect it to happen soon.
If you think it should be then a request for inclusion to: support@vectric.com would be the next step. But, since the only thing added since 2013 is limited support for sheets and the new tool database format I wouldn't expect it to happen soon.
- 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: Setting the model position in material
A lot of my scripts are a mixture of Lua and AutoIt to get around the issues where the UI has a function that the SDK doesn't.
- Tex_Lawrence
- Vectric Wizard
- Posts: 932
- Joined: Fri Mar 25, 2016 11:30 am
- Model of CNC Machine: Shapeoko3XXL; JTech7W; V-CarvePro 11.554
- Location: Dayton, Texas (Don't Mess With My Texas!)
Re: Setting the model position in material
Tex — Crooked Wood Products
Now there's a man with an open mind – you can feel the breeze from here.
Now there's a man with an open mind – you can feel the breeze from here.