3dex automated determination of hole depth depending on max depth

hi can i make makrto or user feature or module to do this.

 

I need to make many holes at the end of work to body. I have the body and set of points on the body. on each point i need to make a hole. Here i need help. I make a hole one by one thats ok. But i need two types depending on how thick is the body.

The hole depth should be either, up to next dpth if it is up to 80mm

if depth up to next would be more than 80mm i need to make it depth 20mm and flat bottom

When i do this manually it really slows my work down

 

thx for help