Place instances on top of another family instance

Hello,

As a new Dynamo explorer, i stumbled upon the next situation.

Goal: place a generic model family on top of all doors in the model. Nesting would be an option but we are dealing with different models from different parties so we would like to control only the parameters in the overlay object.

I managed to create a script that places these instances correctly but when a door family is mirrored (which can happen in the modelling process), the overlay objects rotation is not correct, see screenshot.

Any insight on how to prevent this from happening or to build a workaround check if an family instance is mirrored?

Thanks in advance!

Hereby also the Dynamo code

The generic model component BB_00_DoorProperties should be placed on top of all doors.

You can look for nodes which have ā€œFlipā€ in their name

2 Likes

or try get the doors host walls and take the vector from themā€¦and try vector about angleā€¦not sure :wink:

1 Like

Flipped (by flipcontrol) is not the same as mirrored (by mirror tool). The tool works for flipped elements, not for mirrored elementsā€¦

We also noticed that the doors are not always wall based as they are from other partnersā€¦

allright not sure what you meanā€¦but a door categori in revit should always have a hostā€¦if that not the case then try share your rvt

1 Like

hi sovitek,

iā€™m a collegea of @AndreasPorreye :).
just to clearify we use doors but not wallbased onces.
We do this so we can place doors on linked walls in the model wich canā€™t be used as hosts for wallbased doors.

But we can find the ā€˜hostā€™-wall non the les using interference between the door volume and the wall geometrie.
iā€™ll give it a shot and com back to you here :slight_smile:

3 Likes