Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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.
Not sure. Can you please check API "ProSelectionWithOptionsDistanceEval"
Thanks,
Suresh
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)
?
Hi,
Thanks for the help.
Is there possible to measure the distance between surfaces without Use as plane option?
Not sure. Can you please check API "ProSelectionWithOptionsDistanceEval"
Thanks,
Suresh