Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Area

4 REPLIES 4
Reply
Message 1 of 5
autodesk0860
208 Views, 4 Replies

Create Area

Hello, I would like to reproduce the room creation button in the Revit UI but instead of placing a room, it places a surface (area), of course the manipulation will be done in an area plane.

4 REPLIES 4
Message 2 of 5

You could create the rooms, keeping track of all the new elements added by that step, then query them for their boundaries and use those to create areas.

   

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 3 of 5

The problem is that some closed areas are so small that you can't put a room there.

Message 4 of 5
scgq425
in reply to: autodesk0860

hi @autodesk0860 :

may be , u can create modelcurve-room-boundary , and then , doc.createNewRoom(Level,UV) to create self room

Message 5 of 5

In that case, you need to research to find an alternative workflow and best practices to handle the situation as it is. In general, it is more effective to perform such research from the manual end user interface point of view before you start addressing the task programmatically. So, let us discuss again once you have clarified the best practices to solve this task manually in the end user interface.

    

It is very hard, actually impossible, to solve a programming task if you do not know what exactly you are trying to achieve.

   

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community