Hi, I just got done with placing studs into walls, However they are all facing the same direction and i want them to reorient with the wall.
45.pdf (179.9 KB)
Get wall orientation/facing direction and use that to rotate the studs accordingly.
Thank you for your input; I greatly appreciate it. I have a question: wouldn’t the Wall Orientation node only change the orientation of the wall and not the stud? Or would I have to use a Rotate Element node connected to the wall’s Orientation property to achieve the desired effect? This way, it should work as intended.
You wouldn’t be changing the orientation of the wall. You just need to know which way the wall is pointing in order to know if you need to rotate the stud or not.
You would get the angle between the stud facing direction vector and the wall facing direction vector. Then depending on how you have the stud family set up, you can feed the angle results directly into the rotate element node.
Hello Taylor, I sincerely appreciate your idea and the support you’re providing to assist me. However, I am finding it challenging to follow through with your instructions. As a newcomer to this type of program, I find it much easier to comprehend concepts with the aid of pictures and examples illustrating the ideas you are trying to present to me.
Hello,
Yet everything is well explained on the part of M. STaylor look at the other neighboring subjects also sometimes from the same day or even one or two days,
look at Mr. Draxl’s post just 4 hours ago
cordially
christian.stan
Example using the OOTB light gauge stud column family. If the angle is either 0 or 180, then you know you will have to rotate the stud 90 degrees. If you are using a custom made stud family, then you will have to do similar testing to verify the orientation and angles.
Thank you for the solution, Professor. I must admit I felt a bit frustrated because I thought there might be an automated method of selecting all the studs and aligning them in the desired direction. Buts easier to manually input it in.
You can still automate the process by using an if statement in conjunction with either addition or subtraction and feeding the results into the rotate element node. Just have to be a little methodical with the setup. If the open side/facing direction of the stud doesn’t matter, then it would be fairly easy to automate. If you automate, one area it will help is if you have walls that are not parallel to the project x or y axis.
Could you please elaborate on what exactly the “if statement” is in conjunction with the rotation process for the studs? How does it play a role in determining the correct angle for rotation?
Furthermore, I would like to inquire if the last picture you sent me relates to the methodical setup you mentioned. Does it provide visual information that supports the automated alignment of studs with walls, especially when dealing with walls that are not parallel to the project’s x or y axis?
In my clip, the result of the angle is 180 degrees. That and based on the pic showing the stud orientation to the wall, you can surmise that the wall and stud facing direction are parallel. This is the key. Now you know that the angle of the stud facing direction to the wall facing direction, must always be 90 or 270.
This is a quick and dirty of what I am talking about. If vector angle check (end result of my clip above) is equal to the angle to check against value, you then feed calculated values into the scopeif node and that result is feed into the rotate element. This example only works if the walls are parallel to x or y project axis. So you will just need to think about how to calculate if the wall is not parallel to the project axis. But this should give you a good idea of how to handle the automation.
I am sure others may have better methods of handling this, so maybe they can provide input. Try different options and if you come across a stumping point, then post and we can try to help with that part.