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 V5 Macro Replace drawing links

Status
Not open for further replies.

jygmlr

Mechanical
Dec 24, 2024
1
I have a macro code that I wrote that renames all files(part, product, and drawing) in a user specified directory and saves them to a new directory. While each drawing is open and after all parts have been saved, I am wanting to replace the drawing links for each view with the file path of the new saved part with the same name. I can't quite get this to work. Can anyone shed some light on how to replace view links in a drawing via macro?
 
Replies continue below

Recommended for you

DrawingView.GenerativeBehavior.Document - sets "main" link
DrawingView.GenerativeLinks.AddLink/RemoveAllLinks - manages links to subcomponents of "main" linked Product
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor