Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Determine DoF for parts in a product or count fixes in a component node

Status
Not open for further replies.

CheeseMaker13

Aerospace
Sep 25, 2012
42
GB
Hi Guys,

Is there a way of checking that each part in a component node is fixed? Currently I count all the fixes in the root of the document:

oSelection.Search "CATAsmSearch.MfFixConstraint.Name=Fix'.'*,oDocument"

then count ALL the fixes:

oSelection.Search "CATAsmSearch.MfFixConstraint,all"

However, the latter includes all the fixes in sub products too... not helpful!

In a perfect world I'd like to test every .CATPart/Product in the root product to check that they are all fixed and if they are not, export the instance name to excel to form a 'to be fixed' list.

Spent the last few weeks trying to crack this one, but it has beaten me.

Thanks.
 
Replies continue below

Recommended for you

Well,

Just as I posted that I cracked it - at-least partly.

First I could the root fixes using:

oSelection.Search "CATAsmSearch.MfFixConstraint.Name=Fix'.'*,oDocument"

then search for the component node fixes using:

oSelection.Add oProducts 'Select the component node.
oSelection.Search "CATAsmSearch.MfFixConstraint,sel" 'Search within that component node.

Now I have the number of root parts/products/components, the number of root fixes and the number of parts/products/components in the component node(s) and the number of fixes.

Still would like a way of determining if each part has a Fix against it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top