Intersection Z value to Family instance


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?


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

Thanks :slight_smile:


Connect the types not the instances


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: