Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Yes. I believe I understand what you want now.

But like you said, it will be much more complicated to accomplish than it sounds.  Because there is no setting or option for that sort of thing when exporting to STEP.

So the solution code would need to include 'recursive' subroutine(s) that will dig down through all levels, and rename every component and sub-component, while somehow recording and keeping track of all their original component names, then run all the code to export the STEP, then go back through all levels of the assembly again attempting to set all their names back to what they were originally.

Another idea, would be to use a SaveAs or SaveCopyAs (just make sure you end up in the 'copied' version) to create a temporary copy of this top/main assembly, then do all the component name modifications to that copy, then export the STEP file, then delete the copied version of the assembly at the end, to avoid having to go back and rename them all, in all levels.  I know that component names are different from file names and part numbers, but I'm not 100% sure if this would permanently modify the component names within the sub-assemblies though, or if these changes would only effect the top assembly, so I would proceed with caution and maybe test on test files first, if proceeding to try this. 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)