I have some small element, that represent IoT sensors in the rooms. I used already script which automatically placed needed sensors in the center of the room from the list of sensors & rooms.
Now I have accurate information of their location in the room (wall, door, etc.)
So I created script where I can semi-automatically place them on the position. I select a room, select the wanted location and then select the sensor element and translate it to that point on the surface. But result looks like this:
What is wrong with this is, that first element is half in the wall and secondly it is rotated incorrectly. It is horizontal instead of vertical. I was researching about rotating families and it seems there is some problem about rotating families in Revit in any wanted orientation.
Does anyone know how to solve this using Dynamo?
Thanks
How has your family been created? Can you post a screen-grab of your Graph?
Is is a Generic Model element which is placed by workplane/vertical/face?
Can you upload your files for testing?
Sorry for the mass of questions but more information will help us help you.
So here is the file I used to place sensors in the rooms, from the list which explains which sensor is in which room. Sensor_placer-wSensorPar.dyn (159.2 KB)
Then after I used this script to manually move the sensor object to position on the wall where it was installed TranslateTempSensor.dyn (11.8 KB)