FamilyInstance.ByFaceAndPoint upside down

Hello everyone,

i came across a weird bug with archi-labs node FamilyInstance.ByFaceAndPoint.

For context: The script retrieves Provision for Voids from a rvt link, gets there location (using bimorph) and placing families at the location. Since the families are face-based i select the face in which they are supposed to be placed.
The placing is working fine, they are exactly where they are supposed to be, but for some reason upside down. I tried picking the opposite face (from the wall), flipping the PfVs in the link and using different reference levels for the PfVs, still no difference.
When placed manually the orientation is correct and i see nothing wrong with the family.


(In the Screenshot i took away the height correction for testing purposes, usually they are at the correct height. The origin of the base family is in the middle and the origin of the new family is at the bottom/top)

In an ideal world i don’t want to rotate the placed families for consistency. Is there another way of telling Dynamo that i want them to be “upsidedown” before placing them?

Note: The used PfVs are Host-based and the new ones are Face-based, could this be the problem?

I am grateful for any idea,
Max

Hi @MaxHue not sure do you wanna flip or rotate ?

Revit_pFUDRknpwI

Thank you for the quick respond.
I want to rotate the families. Top to bottom and vice versa.

Set.Rotation could do the job, but as soon as the families are not centered correctly, rotating them after placing screws up there placement

I think i’ve found a solution with Revit’s FamilyInstance.ByFace.
The node takes a vector to define the orientation of the placement.
Though using the z-axis to flip the orientation wasn’t working, using a negative y vector is working just fine.

1 Like