iRule for generating flat patterns for .stp files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I have found some codes that make .dxf files for flat patterns that are very useful. Usually since many companies that I work with use Solidworks or Inventor, we usually make .stp files that work with both programs. Now, if you import an .stp file in Inventor and save it it will be an assembly with parts and assemblies in it. I want to write a code that reads the parts and parts whithin sub-assemblies and convert parts that are sheet metal parts to sheet metal parts and create flat patterns as .dxf files that are not just in the assembly but also sub-assemblies. Creation of flat patterns is not giving good results if thickness is not manually inputed so I would imagine that the code has a set of thicknesses like .8 mm, 1 mm, 1.25 mm, 1.5 mm, 2 mm, 2,5 mm, 3 mm, 4 mm, 5 mm, 6 mm, 8 mm, 10 mm, 12 mm, 15 mm, 20 mm, 25 mm and 30 mm thocknesses and then the code tries to create a flat pattern until it mamages to create one since it would not create it untill the manual input for thickness is not given.
Usually I have a STEP file that is an assembly and what I want is to convert all the parts to sheet metal parts that have a thickmess that matches those, create flat patterns, make .dxf flat patterns with all parts in all sub-assemblies parts and name them by the name in ste .stp file and then add the quantity, material and thickness to the file name.
The codes I have work very well with assemblies made in Inventor and having thickness already in the .ipt files, however I would like the code to be able to read gauges and automatically make flat patterns according to matching thicnkesses to their parts and also giving quantity numbers to the whole assembly and sub-assemblies, not just the sheet metal parts that are in the main assembly but also in sub-assemblies.
If you have any questions I can send you the codes to see how they work.
Thanls in advance 🙂