- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Requesting an iLogic code for exporting step and iges files
I was wondering if someone could help me with a iLogic code for exporting .step and .iges files from an assembly.
What I'm looking to do is this: (I don't mind paying if it works properly)
I want to first export the entire assembly as both a .stp and .igs file(s), but I also want to then have each sub-assembly created as a .stp and igs. file(s), as well as every individual part, contained in the assembly/sub-assemblies and I'd like the export to prompt a folder location and creation with the main folder being saved as the "Top Level Assy. name_Exports" and I'd like the exported .stp files to go into a subfolder labeled "step" and the exported iges files to be added to a subfolder called "step"
(see example)
So in the below example, there is a top-level assembly, 3 loose parts, and two sub-assemblies, one made up of 3 parts and the other made up of 9 parts.
So when the export is run, there would be 18 step files and 18 iges files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Examples of translaters are found on the website: https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=TranslatorAddIn4_Sample
Or in the programming help within Inventor.
Top right you see a question mark, if you press the small down arrow next to it.
Then go: Help --> Programming Help
In the Inventor Help you see: Sample Programs --> Translators --> Export --> Export STEP & Export IGES
I could just copy paste that here, but its best to browse it, useful for a lot of things.
To go through a model I often check this link:
https://modthemachine.typepad.com/my_weblog/2009/03/accessing-assembly-components.html
You can use that code and check if the object is a assembly or part, and see if its a sub assembly or sub sub assembly.
And you can make an array to store which documents you already processed and skip those.
MyArrayList As New ArrayList MyArrayList.Add(oOcc.Definition.Document.fullfilename)