Can't find anything in SDK that would allow me to automate joining vectors in a selection
(which would only include individual elements some open and some closed).
I would like to be able to perform join from Lua code but don't see that function anywhere.
Anyone know how to do in Lua?
Lua Join Gadget
- jimandi5000
- Vectric Wizard
- Posts: 913
- Joined: Wed Mar 11, 2015 6:50 pm
- Model of CNC Machine: Home Made 60 x 120
- Location: North Houston Tx.
- Contact:
Re: Lua Join Gadget
Hi Reggieaj,reggieaj wrote: ↑Tue Jun 21, 2022 4:39 amCan't find anything in SDK that would allow me to automate joining vectors in a selection
(which would only include individual elements some open and some closed).
I would like to be able to perform join from Lua code but don't see that function anywhere.
Anyone know how to do in Lua?
You are correct, there is no automate join function in the SDK. Due to the complexities of identifying line and arc gaps that should be closed and those that should not be close would be virtually impossible. I don't foresee the development team ever providing automated join capabilities as a SDK tool kit.
Thanks,
Jim
Jim
Re: Lua Join Gadget
Wow! That's really really unfortunate!!!!!
The geometry I want to join will always already be connected or closed.
It's coming from wireframe geometry exploded from solids and and regions in Autocad.
I could automate the whole process of going from selected AutoCAD solid to Vcarve tool path if I had a join command!!!!!!
I'm going to see if I can find a work around as I get more familiar with Lua.
I mistakenly thought grouping the elements would be sufficient. But that's not the case.
I thought I could join 1st in AutoCAD. But importing DXF into VCarve breaks up geometry (at least in my initial tests)
The geometry I want to join will always already be connected or closed.
It's coming from wireframe geometry exploded from solids and and regions in Autocad.
I could automate the whole process of going from selected AutoCAD solid to Vcarve tool path if I had a join command!!!!!!
I'm going to see if I can find a work around as I get more familiar with Lua.
I mistakenly thought grouping the elements would be sufficient. But that's not the case.
I thought I could join 1st in AutoCAD. But importing DXF into VCarve breaks up geometry (at least in my initial tests)
- Adrian
- Vectric Archimage
- Posts: 13690
- Joined: Thu Nov 23, 2006 2:19 pm
- Model of CNC Machine: ShopBot PRS Alpha 96x48
- Location: Surrey, UK
Re: Lua Join Gadget
Try exporting/importing as EPS rather than DXF.
Re: Lua Join Gadget
Ok. I'll try EPS.
I tried dwg but it still separated joined geometry when imported into VCarve.
Export PDF form AutoCAD, import into Vcarve and converting bitmap resulted in joined and grouped entities.
But conversion in Vcarve was not precise enough.
I tried dwg but it still separated joined geometry when imported into VCarve.
Export PDF form AutoCAD, import into Vcarve and converting bitmap resulted in joined and grouped entities.
But conversion in Vcarve was not precise enough.
- Adrian
- Vectric Archimage
- Posts: 13690
- Joined: Thu Nov 23, 2006 2:19 pm
- Model of CNC Machine: ShopBot PRS Alpha 96x48
- Location: Surrey, UK
Re: Lua Join Gadget
Exporting PDF shouldn't create a bitmap unless Autocad does something weird with them. PDF's can contain vectors which is why VCarve imports vectors and bitmaps from them.
Personally I wouldn't get too hung up on joining vectors in code. After all it's only two keystrokes to join them in VCarve assuming it's an easy selection.
Personally I wouldn't get too hung up on joining vectors in code. After all it's only two keystrokes to join them in VCarve assuming it's an easy selection.