Level of Elements

Hello,

There are some elements or families that’s impossible to get it LEVEL.

For example: HANDRAIL, GENERIC MODELS BASED ON LINE…

Is there a way to do it?

I did a rotine, that work so good, but not for this families or elements.

Try creating bounding boxes using a scope box XY min and max points and elevation values from your levels. Then do a bounding box containment test on the centroid of the element’s geometry(s). A true means the center of that mass is in the bounding box associated with that level.

Yes railings will still have that bug. But surface hosted and un-hosted components will return the correct values. System families in general (railings, walls, sweeps, roofs, floors, ducts, pipes, shafts…) could have issues with any given option discussed so far, but a combination of the requested could provide the right results if one were to tailor the graph to the modeling style used.

@daniel.petrin if nothing so far solves your problem, then you’re going to have to provide more feedback so we specifically know how the elements in question were created.

Hi All,

There is a video showing how to get all type of levels from elements.

Dynamo - Get All type of levels from Elements

I hope this is helpful!

JL