Script needed :D

Hi!

I would need a script that could reconize walls, doors and windows from the house object.The script would also haft to able to reconize round shapes and squares and places another 3D model to there.
Name your prize and i'll give your more detailed information with example file.