Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Macro to search a part in DESK window of Catia

amitm003

Mechanical
Mar 24, 2025
4
Hello All, if anybody help with a macro which can search a part in desk window of catia to cadua cleanup, because usually i have large assy's open to do my work if i want to do cadua for single a part its difficult to find it in a desk window, as desk window is filled so much pats, is their anyway to solve this issue with macro where i can run a macro in desk window of catia to highlight a part number so i can directly go and do catdua instead of me searching of that part in big tree structure in desk window. Thanks
 
Replies continue below

Recommended for you

Use Utilities to run CATDUA in batch mode. This way you can exactly specify what documents should be processed.
 
AFAIR Desk relationship tree is displayed relative from active document. So if you search for part in original assembly, open it in new window and run Desk command from there it should be easy to find this part as it is going to be located in the very left part of relationship tree.

Similar approach would be to insert parts of interest into a separate temporary assembly and run Desk with that assembly being active.
 
Thanks

Little Cthulhu, but problem is i have to open heavy assemblies which contain lot of assemblies and sub assemblies, which is difficult for me to search in desk window, every time i have to close large assys and reopen then after catdua. which is taking me lot of time.

 
I'm going to elaborate on what I meant:
1. Write macro that would search for parts in currently opened assembly and copy them them to a temporary assembly.
2. Run that macro, close your original assembly.
3. Activate temporary assembly, run Desk command.
4. Select ALL parts and run CATDUA.
5. Close temporary assembly and open original one that is now cleaned.

By the way have you tried running Edit-Search (Ctrl+F) in Desk window? I remember some relationship windows support that but not sure about Desk one.

Or stop fighting consequences of poorly built processes and work with management and IT to allow running batch CATDUA, because it IS the solution that you are supposed to use.
 

Part and Inventory Search

Sponsor