Jeremy Tammik's Building Coder blog has a amazing article on form creation using the API in Revit Architecture 2010. Not being a programmer, most of its gone over my head (need to get on a API class I think!!). But check it out here.....
http://thebuildingcoder.typepad.com/blog/2009/07/revit-form-creation-api.html