×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Macro measure between Product and Point

Macro measure between Product and Point

Macro measure between Product and Point

(OP)
Can someone help me which function I need to use for Measuring distance between Product and Point.

RE: Macro measure between Product and Point

(OP)
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?

RE: Macro measure between Product and Point

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

RE: Macro measure between Product and Point

Quote (OP)

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

RE: Macro measure between Product and Point

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources