Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep 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
Joined
Jun 23, 2020
Messages
93
Location
BY
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.
 
ferdo said:
how can i do this things with help of programming languages? For example - save as new document?
 
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

Back
Top