Thanks itsmyjob. Actually I was looking for TheSPAWorkBench.GetMeasurable(Product1), is it possible?
I can get distance between points, edge etc. Can I use Product in the same fashion?
Here is what I was trying, there are three (or more) Products or Components in an assembly. A line passes thru all of these. I need to sort these Products in the increasing order of their distances from start point of line. Any ideas?
for each product get the intersection points with the line and keep the measure of the point that is the closest to the point at the origin of the line.
order the measures. sort the product...
the difficulty is in the product as the intersect won't let you have the product as an operand, so you will have to loop through all solid from all parts of the product... Fun in perspective.
Post you code, I will follow and help you at each steps.
Eric N. indocti discant et ament meminisse periti
The method that you have explained was already thought but we get 2 intersection points or more that will increase the checking time. Instead I was looking for the option of measuring Point and Product programmatically, the command is available in Catia, that gives me one distance per product.
We are not modifying assembly, it is just reporting the Products' Sequence.