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.
Looks like you are passing the entire array instead of its element.
Check sample code:
status = ProGeomitemDistanceEval(p_sel_arr, p_sel_arr, &dist);
ProGeomitemDistanceEval(lpSelectionEdge, lpSelectionSurface, &distance)