Shoot Continuous Ray - get 1st element of category

I am try to do the following. Shot a ray through the building from and element. get the first instance or element it hits by category.

Example Shoot a ray from the bottom of Structural Framing Elements.
Get the first Floor element that is hit. return the floor Top_of_Elevation to a parameter in the steel.

I have not been able to find a node that will shoot a continuous ray

thanks

Hi,

I Haven’t tried it my self but this guy does some good add-ins that may be of use, here’s an insight of the nodes

To get them just search for Data shapes in the packages.

However, for what you are doing, I would just pick all the elements of a category, use Element.location, look at the Z axis and pick us the lowest value? if you need to do it for each level, filter the associated levels through a bool mask.

Raybounce.ByOriginAndDirection is OOTB

Hi John i will try that but if there is a beam below another beam does the ray stop at the beam below or does i continue to the slab below.

thanks

ooh, good point. I would say make a 3d view with just the category you want showing maybe?

1 Like