Im trying to place family’s based on points. I can place family’s but they didnt come out the way i wanted. The blue dots on the picture are my points. i would like to place a family on this face of the wall aiming to the core of the wall. They currently get placed on the bottom of the wall (correct X and Y coordinate). The rotation is also wrong … The graph i got so far is shown below.
@wusaga thanks for your reply, in this example i used only 1 point. but for my project i need to work with 100’s of points on different walls, with different family instances and their rotations.
Shouldnt it be possible to place a family instance at face / host / point ? The red circle is where my script placed it. the blue dot inside the greencircle is the point where my family instance should be placed. (i placed this one manual to show what i’m trying to achieve.)
I think the HostObject.ExteriorSurface node does not recover the surface of your walls.
I add some knots to find what these surfaces correspond to. Forum Family on exterior face point.dyn (33.2 KB)
The red Node compares surface area. but what if the area of interior and exterior side are the same?
I replaced it with the green node… but my question is are the Surfaces always ordered the same?
Is surface at index 1 always the exterior side?
See attached image below, i marked the exterior side with green and red lines. The green one is good and the red ones are placed wrong. The family is to long to fit the wall, this is just because its easyer to see whats going wrong until the script is flawless
Would u know how to place family’s on face next to / above a opening in wall? I dont know how to get acces to lines or points of the wall opening / window.
i m getting closer and closer to a solution but its still hard. If i had a wall with 2 windows, this method gives me 24 points. but i only want the 4 points per window on the exterior face off the wall.
This graph is alot harder then i first thought
I managed to get points on the Exterior surface now. by using HostObject.ExteriorSurface and then Topology.Vertices.
The next challange is: how to get the “Inner points”.
It seems they are not ordered logical. see the 2 images below.
How can i filter the corners of the wall out ? so i keep only the points that represent the corners of openings.
@Akli.baliche Thx for pushing me the right way
Here the final solution… it only works if the windows / doors are completely inside the wall.
in my case they are because its a precast concrete panel.