Save and replace VB.Net

Save and replace VB.Net

GeorgK
Advisor Advisor
977 Views
2 Replies
Message 1 of 3

Save and replace VB.Net

GeorgK
Advisor
Advisor

Hello together,

 

 

whats the best way to save and replace many ipts and iams with a new name. I would like to select many files in the tree and then loop throuch each of them.

 

Thank you very much

 

Georg

0 Likes
978 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi Georg,

 

You can easily change the name of any of the files using Windows API's as well.

Then you'll have to update the references between documents. You can use the FileDescriptor ReplaceReference function for that. 

You can find some sample codes here and there on the net about them. One is here: http://adndevblog.typepad.com/manufacturing/2012/08/replace-the-file-reference-by-inventor-api.html

 

I hope this helps.

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 3

Anonymous
Not applicable
0 Likes