Elements as Level

Hello.

I have been tasked to GET all lighting fixtures on a level and then SET that level name to a new parameter, but have it renamed to L3. I created a new script put nothing happened. By the way some of the light fixtures do not have host level. They were copied monitored. I might have to approach this task as Element.GetLocation and then use Point.Z but did not know how to filter in-between levels.

For some reason I am getting an empty list results in the List.FilterBoolMask. There are some light fixtures that are in-between the levels

The elements are the input in FilterByBoolMask

“C Garage_Level 03” is below “C Garage_Level 04”?

Are you sure there are elements between the levels?

I figured it out. The C Garage levels were using the survey point values and not matching the element level values. Once I changed the C garage level to match the elements it worked for hosted elements, but some non-hosted elements did not change for some reason.

The C Garage levels were using the survey point values and not matching the element level values.

level has a property called “ProjectElevation” which is relative to rvt internal origin. and iirc, most of the rvt elements report their locations relative to internal origin by default, whereas level uses settings on its own (survey in ur case), hence the confusion.

@kp19 and i really love your profile pic!