Determine DoF for parts in a product or count fixes in a component node
Determine DoF for parts in a product or count fixes in a component node
(OP)
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.
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.





RE: Determine DoF for parts in a product or count fixes in a component node
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.