Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Regex In Filters

5 ANTWORTEN 5
Antworten
Nachricht 1 von 6
SometimesInventorMakesMeAngry
314 Aufrufe, 5 Antworten

Regex In Filters

I'd like to select any items whose property is KA-01-A, KA-01-B, KA-01-C, ..., KA-01-H (between A and H at the end). I could easily match this with regex /^KA-01-[A-H]$/, but I don't see an obvious way to do this in Revit. I can't do it one by one because I can't fit that many filter rules to do it with a bunch of ORs. Is there a way to do this?

5 ANTWORTEN 5
Nachricht 2 von 6

Hi @SometimesInventorMakesMeAngry,

 

You mean ViewFilter Rules?

Why would OR operaters not work in them, 8 rules (to H) are possible. (What Revit version btw?)

 

Or depending on the parameter intended use, use a secundary field as a integer/or number.

And use A=1, B=2 etc, now the filters can be reduced and easier set.

First Rule would be:  Starts With "KA-01-"

Second Rule wound be: Less than 9

 

Filling in the 1, 2, 3 etc efford would depend on the elements/parameter, does a single element have "KA-01-A" or many, in the last case a schedule grouped by that parameter would easy to fill in the integers/numbers.

Nachricht 3 von 6

You can create a schedule, add 2 filters to the schedule:

- include KA-01-

- less or equal to KA-01-H

 

Then your schedule will only show element from KA-01-A to KA-01-H and you can highlight rows in the schedule to select the elements in the model.

Nachricht 4 von 6

@ToanDN :

You can create a schedule, add 2 filters to the schedule:

- include KA-01-

- less or equal to K-01-H

 

do you mean "KA-01-H"

If it solves your problem, please click Accept to enhance the Forum.
Nachricht 5 von 6

Thank you! This works! However, I also have KA-01-AA, KA-01-AB, ..., etc in the list. Those are still present.
Nachricht 6 von 6

Can you please elaborate on this part?
"use a secundary field as a integer/or number.

And use A=1, B=2 etc"

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report