Continue to Site

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!

Macro measure between Product and Point

Status
Not open for further replies.

man2007

Aerospace
Nov 6, 2007
283
IN
Can someone help me which function I need to use for Measuring distance between Product and Point.
 
Replies continue below

Recommended for you

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
 
OP said:
I need to sort these Products ...

define sort?

just know which one is closer to the point or actually change the order to the assembly element according to the distance?

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top