What I'm trying to make is the following:
I'll be trying to make a macro I can run in mymain assembly which automatically makes all the dxf files and costcalculating parameters I need to order my laser cutting work.
The procedure this macro has to run through isthis:
1. Recognize if the partis a sheet metal . If yes: continue to 2, else : don't doanything
2. Make an empty( no sheetformat) drawing with scale 1:1
3. Layer 0: Flat patternvan het part in sheetscale
4. Layer 1: Maximale x eny maat
5. Layer 2: Notemet :
1) Filename
2)Material en thickness
3)Quantity of this part in thisassembly
4)Max x and y dimension
5)Number of perforations
6)Total perimeter of this
6. Export to excelfile:
1) Create new line
2)Output:Filename,Material,Thickness,Max x dimension,Max y dimension,Numberof perforations,Total perimeter
7. Save drawing as dxf (same name as the part file name)
8. THE END
Figuur 1 Example of the wanted dxf
I've been searching through this forum for awhile and found some usefull stuff to start with. I'll post thelinks later on today.
All I hope is that I can convince some peopleto help me with this task, as I'm only learning to program insolidwork.
I also think this macro could be extremelyusefull all people who have to make lasercutting stuff. So I won'tbe the only person who benefits from making this.
Hope to have a lot of responses and help inthis topic.