Door Parameters

Greetings everyone!

Is there a way to get the “Door Handing” property (if it opens from left to right i.e.)?

Thanks!

Thats a FamilyInstance.HandFlipped property, which as far as i know (not much) isn’t available as a component yet and would need to be coded.

Here is a quick python version.

import clr
clr.AddReference('System.Core')
clr.AddReference('RhinoInside.Revit')
clr.AddReference('RevitAPI') 
clr.AddReference('RevitAPIUI')

from System import Enum

import rhinoscriptsyntax as rs
import Rhino
import RhinoInside
import Grasshopper
from RhinoInside.Revit import Revit, Convert
from Autodesk.Revit import DB

doc = Revit.ActiveDBDocument


def get_all_flips():
    familyinstances = DB.FilteredElementCollector(doc)\
                      .OfClass(DB.FamilyInstance)\
                      .ToElements()
    docs = [x.HandFlipped for x in familyinstances]
    return docs


L = get_all_flips()

GetRevitHand.gh (2.9 KB)

3 Likes

@Rickson
thanks so much for the response. I made a few modifications to the component so it can be used to check all various flip type, and updated the Wiki

https://www.rhino3d.com/inside/revit/beta/guides/revit-modify#flip

2 Likes