cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

While using ProSelectionDistanceEval on assembly cut surface ,creo crashes .What can be other way to measure distance between surfaces in which one surface is assmebly cut surface.

ssawheny
1-Newbie

While using ProSelectionDistanceEval on assembly cut surface ,creo crashes .What can be other way to measure distance between surfaces in which one surface is assmebly cut surface.

While using ProSelectionDistanceEval on assembly cut surface ,creo crashes .

What can be other way to measure distance between surfaces in which one surface is assmebly cut surface.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
FV
17-Peridot
17-Peridot
(To:ssawheny)

Hi all,

There is no magic in distance calculation, the regular vector algebra: pseudocode:  v=pt2-pt1; dist=sqrt(v*v);

The only question is how to determine which point belonging to one of surfaces to be used.

In the most simplistic case when a user' selection determines  target measurement points, the application would need to get coordinates using ProSelectionPoint3dGet, transform those coordinates to inertia coordinate system using  ProSelectionAsmcomppathGet and ProAsmcoppathTrfGet,  and calculate the distance. If one of the surfaces is a plane then ProSelectionPoint3dGet, ProSelectionAsmcomppathGet and ProAsmcompTrfGet for both surfaces, for the planar surface ProSelectionModelitemGet, ProGeomitemToSurface, ProSurfaceXyzdataEval, convert extracted ProPoint3d and ProVector to inertia coordinate system, calculate a distance between a plane ( defined by a point and a normal) and a point. The similar approach could be used for other types of analytical surfaces as well.

HIH.

Feliks.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags