Hello @Japhy, I would like to follow up on this topic with a feature request.
Although the flipping component seems to be a good fix for a few instances, there are cases where defining the direction of the door just like one does in Revit would be more intuitive and easier to control. I’m just facing a case where I have not assigned specific spaces like hall and Room and therefore I have no reference space that the door should swing to.
Connecting the swing directly to the orientation of the component base plane would be a very welcome feature (e.g.. door opens as a preset in the direction of the Y-Axis, and swings in the direction of the X-Axis, and from that one can switch it around with the flip component).
Using the Revit API in a lot of cases is more limiting than the UI, where a slight move of the mouse will flip opening direction, or the spacebar flips the side.
The NewFamilyInstance method has fairly generic constructors.