Intersection Z value to Family instance

Hi,

I have a code almost finished that is looking for the intersection of a sloped roof and a family.

With intersect all i found the Z-values shown in List.MinimumItem. The last step is to assign this height to the family instance parameter, so you wil get a stepped result. This must be possible i think?

1

So it will give this as a result (green is the sloped roof):
2

Thanks :slight_smile:

@vanlion

Connect the types not the instances

image

1 Like

Thanks for taking your time to help.

This wasnโ€™t gave me the good height result but i found an other way to do this:

I will build on from here to see if all the different situations are working :slight_smile:

Still i prefer the first code because you get the exact intersection point. but that isnโ€™t working for now :frowning: