Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

How To Figure Out the Top Product

Status
Not open for further replies.

jzecha

Aerospace
Jan 20, 2016
236
Is there a Macro or Tool that could scan a folder with a bunch of files in it and Identify what the top product is?

I am an Engineer and can usually easily do this, but I have other departments in my company like a Planning and Program Management that need help identifying the top product in a Data Package customers have sent us.
 
Replies continue below

Recommended for you

Here, I wrote you a thing to do this using VB.NET in a WinForm. The user will need CATIA open to be able to read the files and determine parent/child relationships. Other than that, I think it is pretty self explanatory how it works, but please comment back if you have questions.

Code can be found here, Git Repository: [URL unfurl="true"]https://github.com/weagan22/TopProductLocator[/url]

2024-04-12_17-28-58_gzvah1.bmp


2024-04-12_17-31-56_dajs0l.bmp


**You will need VisualStudio to compile it on your side (see: [URL unfurl="true"]https://learn.microsoft.com/en-us/visualstudio/get-started/tutorial-open-project-from-repo?view=vs-2022[/url])
 
This appeared to be pretty great, but my company restricts me from running apps like this.

But I did use your approach to build my own Catia VBA macro.

I appreciate the direction you gave me.
 
I believe that you can use StiEngine to discover links of all product files located in a folder. File that has no links pointing to it is the top one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor