include cells at a distance

I enclose two dgn
1) dgn with macro run
2) no macro dgn
also attach macros
I want the macro to include cells that are at minimum distance (set to 10 m). as he now takes all the cells. the if statement distmincalc <distmin not work or something I'm wrong.
Programmer does not have anything I can do
I studied in "Learning MicroStation VBA" and copied examples.
also add that I know are English
thanks to those who give me a hand
Parents Reply Children