If you do not know how to read the value of a door’s ToRoom and FromRoom calculation points from a schedule (not a trivial exercise) you can calculate the point from the doors and rooms directly.
Doors have two “room calculation” points. These are exposed through the Revit API and are accessible easily enough by using Python (I must confess I needed help from the forums).
I include the full script I used below.
I realized that the Transaction Manager is behaving a bit differently than before, and although I could not find documentation about it readily, I manage to figure it out with reference to the error messages without too much trouble. If necessary, one could use something like Visual Studio to expose the namespace.
The ProtoGeometry module is used to transform the points into something that Dynamo understands as a point object.
The method that is used can be found in the Revit API.
Two points are exposed for each door. To separate the FromPoint and ToPoint points into two separate lists, I flattened the list and then took all even indexes to form one new list and another for all odd indexes. The usual node is then used to query in which room the point is located and the GUID of the room is used to identify the room from the dictionary.
If you need help adopting Revit, Dynamo and BIM in your practice, please contact Micrographics so we may be of assistance.