Rename all files and subfiles names in with API VB.NET?

Rename all files and subfiles names in with API VB.NET?

mucip
Collaborator Collaborator
297 Views
2 Replies
Message 1 of 3

Rename all files and subfiles names in with API VB.NET?

mucip
Collaborator
Collaborator

Hi,

I can change all files and subfiles names (Not occurence. Real file names) in SolidWorks in Model Tree. But I can not do the samething in Inventor. When I rename the part/assembly then I can change only occurence name. By the way I wrote code in SW to change tons of Parts/Assemblies files names with one button. I use ordinary file names for all files like

ModelA-00001

ModelA-00002

ModelA-00003

etc...

I use this when I want to create new version of the all assembly model with the new numbers like below:

ModelB-00001

ModelB-00002

ModelB-00003

etc...

 

I can update all source of drawing files with the new file names. This is also very important.

 

In SW this is not so difficult with API. I want to do same thing in Inventor API.

Could you please guide me?

 

Regards,

Mucip:)

0 Likes
Accepted solutions (1)
298 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor
Accepted solution

Renaming files can be done using the API but Inventor and vault have both tools to create design copies. Did you have a look at these options:

Copying an Inventor assembly using iLogic Design Copy

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Copying-an-Invento...

Have You Tried: Copy Design

https://help.autodesk.com/view/VAULT/2024/ENU/?guid=GUID-CA59F765-6BE5-47C6-8EF5-B9D427854D97

 

These options are way easier than creating your own rule.

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 3 of 3

mucip
Collaborator
Collaborator

Hi,

First time I saw.

OK. I will check it. But we don't use VAULT.

Anyway. I check. Thanks.

 

Regards,

Mucip:)

0 Likes