script- import map and check contour lines

Hi,
I'd like to do a script in 3ds max which recognize maps. Map will be imported from Civil 3D. As I know there're contour lines. Script will base on them and check for example if it's to high or underground to build a house and divide on some regions this map. When decision is OK there will be built sth.
I've just started my adventure with scripts in max so I don't know if it's possible to do. It's very important for me, so please write me your suggestions, some steps how to start, what to do firstly or if it doesn't make anny sense to continue it and why.
thank You,
greetings