Read value from a parameter and use it in a Filter Rule

Read value from a parameter and use it in a Filter Rule

Haider_of_Sweden
Collaborator Collaborator
393 Views
4 Replies
Message 1 of 5

Read value from a parameter and use it in a Filter Rule

Haider_of_Sweden
Collaborator
Collaborator

This is what I did:

 

  • Project Paramtet named "Isolate This" for View
  • I created a Filter that looks into Comments to create a rule from the value typed there
  • I now want to read the value typed in under "Isolate This" parameter and use it inside a Filter Rule, see screenshot

Haider_of_Sweden_1-1659602950684.png

 

 

Is it possible?

0 Likes
Accepted solutions (1)
394 Views
4 Replies
Replies (4)
Message 2 of 5

benschilders
Advocate
Advocate

1. The parameter you are showing us is from a view not from the categorie doors
2. You should add the Ïsolate this"parameter to the filter not comments

So try using the same category and the same parameter (project or shared) in the filter.

Soulution:
1. make isolate this parameters fillable for doors: ( Manage -> project parameters -> select -> modify -> check doors)
2. Fill the parameter from some door instances.
3. edit your filter and change comments to your own parameter. 
4. Add the filter to views/viewtemplates as desired and make sure to set 
the parameter to not visible

pyRevitHave a look at my idea: Material priority Revit quick start guide ┃Please accept soulution if my anwser solved your problem
0 Likes
Message 3 of 5

Haider_of_Sweden
Collaborator
Collaborator

@benschilders - sorry, I seem to have been unclear with my first post.

 

I have two parameters, and I want them to "talk to each other".

Please see the steps I have taken

 

1) Manage > Project Parameters:

Haider_of_Sweden_0-1660114914188.png

 

I create a parameter for Views. I only want to type in things in views.

 

2) I have elements in my scene with comments

Haider_of_Sweden_1-1660115102066.png

 

Haider_of_Sweden_2-1660115141329.png

 

3) I now want to create a filter, that reads whatever I have typed in this view's Parameter which I called "Isolate this"

Haider_of_Sweden_3-1660115323436.png

 

How do I read whatever is written under the view-specific parameter "Isolate This" and use it inside a view filter?

Is there any syntax that does this?

0 Likes
Message 4 of 5

L.Maas
Mentor
Mentor
Accepted solution

No this is not how it works.

 

You get something like "All Selected" from "Isolate this" "equals" (or contains etc) and then enter a value (e.g Beta).

 

If needed you can expand by using the and/or function.

 

You get something like "All Selected" from "Isolate this" "equals" (or contains etc) and then enter a value (e.g Beta) AND "Comments" "equals" value.

 

You can not do something like "Isolate this" is equal to "Comments"

 

If you want something like comparing "comments" to "isolate this" then you probably need to do some scripting (e.g Dynamo).

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 5 of 5

Haider_of_Sweden
Collaborator
Collaborator

Thanks Louis,

 

Too bad. It would've been a cool thing, to control things this way.

 

Dynamo would be fine, but as long as it is not real-time, then it would never be the same thing.

0 Likes