Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Rename Macro

Status
Not open for further replies.

iamerror

Aerospace
Jun 13, 2016
12
US
Hello all,

I have questions about using the ReplaceProduct function in a VBA macro. I tried to search around, look at the CATIA docs, record macro, etc. but no luck yet... The purpose of the macro is to rename a selected product and relink, essentially: you make a selection, give it a new name, it will copy and paste (break link) into the top level product, then it will search and replace the old with the new product whiles keeping links.

I all of the code working except the ReplaceProduct function. Attached is the code, again, I am using CATIA V5 R21 and VBA. Thanks again!
 
 http://files.engineering.com/getfile.aspx?folder=cc4c8766-c982-43ff-b4d9-dbc76c7d4b84&file=Macro.txt
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top