Handflipped doors

pierre_martinA96CS
Explorer

Handflipped doors

pierre_martinA96CS
Explorer
Explorer

Hello,

I have an issue with rotating doors in my Revit project using a Python script. When the door family has both facing flip and hand flip controls, I can successfully rotate the door as needed. However, when the family has only a single flip control (e.g., vertical flip only), the door only rotates 180° along the “ghost” wall, and I cannot achieve the desired orientation.

Here’s my situation:

  1. I have walls with doors placed on them.
  2. I need to delete these walls, which also removes the doors.
  3. Before deletion, I create new walls and place new doors at the exact same locations as the original ones.
  4. However, depending on the original door orientation, sometimes the new doors are placed correctly, and sometimes they are not.

To solve this, I compare the HandFlipped and FacingFlipped parameters before and after placement. However, due to the single 180° flip control, I am unable to properly adjust the orientation of some doors.

 

 Is there a way to bypass this limitation and ensure the new doors have the correct orientation?
Any help would be greatly appreciated!

0 Likes
Reply
125 Views
2 Replies
Replies (2)

mhannonQ65N2
Advocate
Advocate

Have you tried using the  flipFacing() and flipHand() methods?

0 Likes

pierre_martinA96CS
Explorer
Explorer

Yes, with Python, I use the boolean values facingFlip and handFlip. But when working in a family in Revit, where we only have a simple control, the program doesn't work. Finally, I changed my method to simply modify the host of the first doors to set the required wall host.

0 Likes

Type a product name