I am currently trying to find a way in VBA to identify cells where the distance to the next cell is less than 600 mm.
In MDL-help I found the function "mdlMinDist_betweenElms" which sounds quite perfect for me - the only problem I have is that I have not too much knowledge in MDL ...
The function "mdlMinDist_betweenElms " asks for 3 inputs:
I got this function running but I do not know what the 3rd input (closestPoint) means.
Can someone help me?
Just a related observation - if I remember it correctly, mdlMinDist_betweenElms is not always doing what you may expect.
It computes minimumum distance between two element wireframes.
If you expect minimum distance to a surface you may find it is not the case (i.e. whenever the matematically correct distance should be measured to a point inside of a planar polygon).
I haven't checked whether above still holds true in the most recent MicroStation versions, but maybe Bentley can clarify.
Cheers,
/Chris Z.
Hi Chris
I am creating a procedure which identifies power outlets in buildings which are located in an area < 600 mm to the next water pipe.
For this case I think it's okay if it uses the wireframes and not surfaces.
Anyway - thanks a lot for this notice!