I want to create a family object that work like a floor tool, where you can sketch a closed loop and define the form.
This object must be hosted on a wall or floor. I mean the possibility to create a surface with as many points as I need in each single case.

Can i use a python script? How can i do that?

Thanks