Looking for a solution to renaming documents .programmically

Looking for a solution to renaming documents .programmically

Anonymous
Not applicable
354 Views
2 Replies
Message 1 of 3

Looking for a solution to renaming documents .programmically

Anonymous
Not applicable

Im looking for a solution to renaming parts and subassemblies. Updating their references in drawings and assemblies.programmically.

We are using Inventor 2011.

 

I tried using SaveAs but it really boogers up files badly.  (Problems with PartNumber Property not not changing).

 

What is the recommened way to do this in VBA?

 

Thanks

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

xiaodong_liang
Autodesk Support
Autodesk Support

Hi Gruff,

 

I have not a code with VBA. But i suggest with the SDK sample:  SDK->UserTools->CopyDesign which demonstrates how to get the assembly and parts file copied and renamed, and the file references replaced. The sample uses Apprentice.

 

Regards,

Xiaodong Liang

Developer Technical Services

 

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you for the response,

 

I will look at the sample.  Hopefully the full inventor API supports the same tools as apprentice as I have to write this in VBA.

0 Likes