In this post i will demonstrate how to automatically determine if door is left or right handed.
One of my fellow Bloggers asked me this morning about determining door set handing programmatically (or any other automated way). Dynamo is a pretty good at accessing Revit API so i quickly cooked up a solution using three of the door properties: HandFlipped, ToRoom and FacingFlipped. Those three combined together make it easy to determine if a door is left or right handed. For all doors swinging into space that has no room placed (most likely exterior) there is another set of hardware called Right Hand Reversed and Left Hand Reversed. Here’s a solution:
Here’s what the Dynamo definition looks like:
Here’s the code that sits under the hood of Door Set Handing node:
Door Set Handing is now a custom node available for download here: Dynamo Download Page.
Preview of this functionality:
Also, Håvard Vasshaug has made a short video and a write up on his blog demonstrating this node in real world application. You can find it here.
In response to questions posted below originally by Dominik, I made some changes to the Door Set Handing Node. Code that you see above reflects those changes. There is an additional input now, for a Phase, since extracting door ToRoom and FromRoom information required that input. I had originally made a silly assumption that everyone’s phases would be called “New Construction” or “Existing”, while in reality some people like to change their names. Anyways, it was an issue with Phase names, and the node should be working well. Thank you to Dominik and recently Jan for pointing out that the node wasn’t functioning well. Here’s the latest example that uses Document.Phases from Clockwork package, to extract a phase on which door might reside: