Catia Macro: How to get Product/Part Object from MyDrawingView.GenerativeBehavior.Document.Parent
Catia Macro: How to get Product/Part Object from MyDrawingView.GenerativeBehavior.Document.Parent
(OP)
Hello World,
This is my first post in this forum. I want to get product/part object to parent document of drawing view. I know we can get full path of the same with following Statement.
MyDrawingView.GenerativeBehavior.Document.Parent.FullPath
But I have following problems
1. How can I get object to Parent 3D model without opening it ?
2. How to find if 3D Parent Model is already opened and switch to same ?
Jagandeep
This is my first post in this forum. I want to get product/part object to parent document of drawing view. I know we can get full path of the same with following Statement.
MyDrawingView.GenerativeBehavior.Document.Parent.FullPath
But I have following problems
1. How can I get object to Parent 3D model without opening it ?
2. How to find if 3D Parent Model is already opened and switch to same ?
Jagandeep





RE: Catia Macro: How to get Product/Part Object from MyDrawingView.GenerativeBehavior.Document.Parent
Welcome to Eng-Tips....
1.
CODE --> CATScript
Send the full name of the linked file to this function. it check the documents opened if opened then
CODE --> CATScript
Regards,
Maddy
RE: Catia Macro: How to get Product/Part Object from MyDrawingView.GenerativeBehavior.Document.Parent
RE: Catia Macro: How to get Product/Part Object from MyDrawingView.GenerativeBehavior.Document.Parent
Regards,
Maddy
The willingness to share knowledge does not make one charitable; it makes one self-reliant to know more.
Modified - Courtesy of Robert Brault