Good afternoon. Please tell me how to solve the problem. It is necessary to select the face of the part that is parallel to the selected face and is at a distance of no more than 5 mm from it.
Get selected face normal vector
For each body
For each face
If face is planar then
Get normal vector
Cross with selected face normal vector
If cross product = 0
Measure distance to original face
If less than 5mm
You might also be able to combine it with SelectByRay, which can start at a certain position and selects the first face it encounters when going in a certain direction.
Retrieving data ...