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 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
Joined
Dec 24, 2024
Messages
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?
 
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

Back
Top