Submitted by newton-mn on Tue, 08/12/2014 - 20:05
Forums:
Is there a way to export a step file AND retain the assembly structure using the .net api? I have a journal that exports the visible components to a step file but it doesn't retain component names or assembly structure. Can this be done?
Thanks
Is it not possible to do this
Is it not possible to do this interactive and record a journal?
re: STEP export
The only way I know to keep the assembly structure is by using the "entire part" export option; when you switch to "selected objects" it seems to flatten the structure. I don't think you can export selected objects and keep the structure whether you use the interactive commands or the API.
At least that is my experience, if someone knows of a way to keep the structure while exporting only "selected objects", please let us know how to do it...
re: STEP export
Is there a way to export a NX part file with ufs.Part.ExportWithOptions() that will maintain asm structure and use "selected objects"? Maybe we could do this first then export the STEP?
re: STEP export
The ExportWithOptions() method will only export geometry from a part file, it will not export occurrences (i.e. geometry that belongs to components).
However, a two step solution is probably the way forward. The STEP exporter allows you to specify which layers to export; perhaps moving the bodies/components of interest to their own layer before performing the export would give the desired result. After the export operation, the journal could move the components back to the original layers. Or create an undo mark before moving anything then after the export, roll back to the undo mark...
Alternatively, you could (in theory) clone the assembly and delete the components that were not selected for export then perform the STEP export on the entire part. Finally, delete the cloned file since it won't be needed.
I've not tried out either method, but they may be worth pursuing.
STEP or IGES export of open part files
Hello All,
Our Dispatcher services for translation has failed drastically.
My team is struggling creating STEP and IGES files of open part files.
Can someone please share a code that can export current open part file as STEP and or IGES file on the users C:\Temp directory?
I recorded a journal but it maps everything to the part that was used to record the journal. To top it up, I am not a programmer and cant identify what needs to change.
Any help or leads will be greatly appreciated.
Thanks.