Filter the Elevation Views


good afternoon dear friends of this community, how can I do to filter the elevation views? I see that they are associated to SectionView Thanks in advance

It’s always good to look at the parameters and see if anything is identifiable that way. In this case the Family (Name) value is Elevation, so you just have to get that value and filter.

I’d recommend using Element Class to get SectionViews specifically. Then you just need to filter out templates to avoid the warning.

1 Like

Muchas gracias amigo, la cuestion aqui ahora es como entrar una vista no encuentro el nombre del parametro para filtrar por SectionView, cuando filtro y filtro y obtengo el nombre de la vista creo q se pierde y ya no es una vista, si conceto desde All elements of class, por ejemplo el Index 12…si me funciona como una vista

Thank you very much friend, the question here now is how to enter a view I can not find the name of the parameter to filter by SectionView, when I filter and filter and get the name of the view I think q is lost and is no longer a view, if I conceto from All elements of class, for example the Index 12 … if I work as a view.

All element of class I got better result thank you very much, now I need the other step

You need to filter. If you want anything that has a name then just use a conditional to check for empty strings.

viewName == "";

If you want all SectionViews (and not just Elevations) then you can use View.IsTemplate to check if the view is a template and filter that way.

Either way, you can use FilterByBoolMask to filter the views based on the condition.

I think I got something good in what I was looking for thanks to work with All elements of class, I will test and share with you the complete routine with a brief descriptive and you can give me some feedback, but decisive on the issue of element class, thank you very much.

Hi and an easy way if you are into genius loci package :wink:

1 Like


I don´t know !

1 Like

i guess you need dynamoironpython package, if 23-24 use 2.7 version 2.5…can be installed from package manager…if not installed then try it :wink:

Thank you very much!!

help! i have 10 elements to tag in 11 views, i have tried all the “lacing” and i can’t tag, i have left a control item to see if i can tag in that specific view but the interest is to do it in all the elevations views.

Please pin the node preview bubbles or use watch nodes when taking screenshots so we can see what you’re dealing with. List levels should fix this - view or element @L1 should be enough.

1 Like

hard to say…but guess the original question have some solution for filter elevation views already both from Nick and a way with custom nodes…i would create a new topic for create tags and share a sample rvt file…many things can go wrong you know :wink:

friends, thank you very much for your effective and timely response, I have been very helpful, I will share the complete routine and see what is happening to me, I have seen something about L@ sublists but I do not know how it works, in essence I want to tag the windows of a window and put the tag in the elevation views.

here is a fast example for one elevation…but as mention many things can go wrong when we talk elevation IMO :wink: play around with it

Revit_M0E64VeuLi

and probably something here if you will run on all elevation at once

ClswIstqxF

which package do you use in that routine in the video

genius loci for tag and elevation views and in the example for one view i use some spring, but it isnt so good use all elements in view…best just use vectors

For example…Document.ActiveView, Collect.ElementsView, I don´t have

from spring, but use vector instead…