Hi.
Yes I can try to explain better.
I have imported a STEP file into Inventor.
After Import i got a .iam fil with a huge bunch of .ipt files named typical Solid01, Solid02 etc.
To clean up this mess I have used demote functionality to create a Assembly - Sub Assembly - Sub Assembly - Part structure.
After creation of this structure, I got a quite tidy model.
Next problem is that all the names on the part files, .ipt, are as explained above Solit01, Solid02 etc.
Also the filenames of the Assembly files, .iam, are wrong.
To sort this out I have renamed the Browser nodes.
Meaning..... I have written new names on parts and assemblies in the Model Browser.
Its tidy in Inventor but a mess on the harddrive.
My plan...
Just save everything (entire model) as a new fileset.
When inventor is saving the files it should use the new names in the model browser as filename.
The script has to read this new names from the model browser of the Main Assembly file. At the top of the hierarchy, and then save all this files with the new filename.
PSEUDOCODE
Read through entire model browser structure
make array, Two columns, (Old filename) and browser node name (New filename)
Start saving routine
Ask user for path to save folder/location
Start saving from top of list
This filename as this new filename at choosen folder/location
Nice to have....
Files to be saved in folder structure instead of one single folder
folder structure matching the assembly-structure with new names
8000 files in same folder is a bit messy 🙂
The next thing,
about this custom iProperty is also an extra nice to have.
When all files are saved with new filenames the script just have to create a new custom iProperty named EZ_name and set the value of this iPorperty to the same as the filename (without extension)
For each file of course.
PSEUDOCODE
Read through entire structure
Create cusom iProperty in all files
Set value of each iProperty to the same as the filename.
I will gladly answer more questions.
A solution for this project saves me for tremendous work, and this can be a solution for more people who is importing Step files with no structure.