Measuring the Distance between two surfaces using ProGeomitemDistanceEval?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Measuring the Distance between two surfaces using ProGeomitemDistanceEval?
Hi,
I am trying to measure the distance between two surfaces using ProGeomitemDistanceEval method which gives output distance as 0 always.
lErr = ProSelect("surface,point,axis", 1, NULL, NULL, NULL, NULL, &lpSelectionEdge, &lSelCount);
lErr = ProSelect("surface,point,axis", 1, NULL, NULL, NULL, NULL, &lpSelectionSurface, &lSelCount);
lErrCode=ProGeomitemDistanceEval(*lpSelectionEdge, *lpSelectionSurface, &distance);
Can you help what's the wrong in this code?
Thanks in advance.
Solved! Go to Solution.
- Labels:
-
ProToolkit
-
Toolkit
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not sure. Can you please check API "ProSelectionWithOptionsDistanceEval"
Thanks,
Suresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Looks like you are passing the entire array instead of its element.
Check sample code:
status = ProGeomitemDistanceEval(p_sel_arr[0], p_sel_arr[1], &dist);
Should be
ProGeomitemDistanceEval(lpSelectionEdge[0], lpSelectionSurface[0], &distance)
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Thanks for the help.
Is there possible to measure the distance between surfaces without Use as plane option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not sure. Can you please check API "ProSelectionWithOptionsDistanceEval"
Thanks,
Suresh