Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

CATIA Rename part\product with new UUID

Status
Not open for further replies.

elmundo777

Automotive
Jun 23, 2020
93
Hello
I'm have a question:
How to change the name of the part / product with the help of macros/vba/vb.net, while changing the uuid?
The problem is that using the vb language I try to change the name of old files for later saving and get an error:
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at INFITF.Documents.Item(Object& iIndex)
But when I create new file and try to rename it, i haven't this problem.
 
Replies continue below

Recommended for you

ferdo said:
Did you try to use the search function of the forum?
if I could find the answer to my question using a search, then I would not ask here...
 
Use CATIA.Documents.NewFrom to create a copy of a document with new UUID.

Nice FAQ post by ferdo btw.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor