REvit Model Checker - accessing View Filters

REvit Model Checker - accessing View Filters

Keith_Wilkinson
Advisor Advisor
2,572 Views
14 Replies
Message 1 of 15

REvit Model Checker - accessing View Filters

Keith_Wilkinson
Advisor
Advisor

Hi,

 

I'm trying to write a rule in Revit model checker to isolate view templates.  They get listed if I select the Views Category but I can't for the life of me figure out how to then filter on 'Family' - I've tried Family Name = Template and I've tried access it via parameter names but no joy - anyone know how to do this?

 

2018-02-19_09-56-36.png

 

2018-02-19_10-06-37.png

 

Cheers

 

K.

 

 



"Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime."
Maimonides
0 Likes
Accepted solutions (3)
2,573 Views
14 Replies
Replies (14)
Message 2 of 15

Keith_Wilkinson
Advisor
Advisor

Also having issues using Wildcards when using API Type and API Parameter.  For instance if I collect all the Filter names and try to check the syntax of these the rule fails.  If I put in a specific value or 'contains' filter it works fine.

 

Are there any experts in this field out there, support for this potentially very useful add-in seems pretty thin... 

 

2018-02-19_16-13-05.png



"Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime."
Maimonides
0 Likes
Message 3 of 15

JasonKunkel
Collaborator
Collaborator

For the first part to this question:

 

The sample I made is obviously a terrible check (since it will error on every View Template in the model file) but to start filtering down to View Templates, you can look for the API Parameter "IsTemplate" so it will look something like this:

 

model checker vt.PNG

 

Are you using the Revit Lookup tool? Or looking over the API docs? API Parameter category is basically the Properties for the different classes. This only works for properties that do not reference other objects or arrays. It can check for T/F, and individual values a-ok. In the Revit Lookup tool, anything that doesn't show up as bold. Methods are not accessible like Properties, unless there is a Model Checker Filter Category that explicitly addresses it.

 

I'll try to dive into the next part to this post and reply in a bit. Hope the above helps!

 


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
CADD Microsystems Blog
RVIT Blog | Twitter | LinkedIn
0 Likes
Message 4 of 15

JasonKunkel
Collaborator
Collaborator

We found the issue in the Model Checker trying to use wildcards for API Type and API Parameter. API Type will not support wildcards. API Parameters should but there is a bug. This is getting resolved and will be fixed in an upcoming release.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
CADD Microsystems Blog
RVIT Blog | Twitter | LinkedIn
Message 5 of 15

e.capasso
Participant
Participant

Hello Jason,

I'm using a lot your Model Checker, but this bug is keeping me to move forward,

is there any idea when the update with the solution will be available? 

 

Thanks,

Emiliano Capasso

BIM Manager

Antonio Citterio Patricia Viel

0 Likes
Message 6 of 15

JasonKunkel
Collaborator
Collaborator

We are hoping to get the next release out in the next couple weeks. This new version is far more than just bug fixes which is why it is taking us longer than typical. I'll try to remember to ping you when it's available.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
CADD Microsystems Blog
RVIT Blog | Twitter | LinkedIn
Message 7 of 15

e.capasso
Participant
Participant

Many thanks Jason,

I'm looking forward to see the new changes,

 

Regards,

Emiliano Capasso

0 Likes
Message 8 of 15

e.capasso
Participant
Participant

Hello Jason,

do you have any uoupdat regarding the new version?

 

also, is there any beta channel to be part of?

 

Regards,

Emiliano Capasso

BIM Manager

Antonio Citterio Patricia Viel

0 Likes
Message 9 of 15

JasonKunkel
Collaborator
Collaborator

The new version just released this week! Looking forward to everyone’s feedback. 


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
CADD Microsystems Blog
RVIT Blog | Twitter | LinkedIn
0 Likes
Message 10 of 15

jakelucier
Explorer
Explorer

I am trying to filter pipe tags who have lost their host.

 

Category OST_PipeTags

AND API Parameter IsOrphaned Defined True

AND Type or Instance = False

 

Shouldn't this work? seems like such an easy test but it is stumping me!

0 Likes
Message 11 of 15

Anonymous
Not applicable

Hello Jason,

 

Is it possible to access a method from Model Checker "IsMonitoringLinkElement"?

Could you explain this :"Methods are not accessible like Properties, unless there is a Model Checker Filter Category that explicitly addresses it."??

 

Thanks!!

method.PNG

0 Likes
Message 12 of 15

JasonKunkel
Collaborator
Collaborator

IsMonitoringLinkElement is not accessible via a custom check, unfortunately. What I think I meant by "Methods are not accessible like Properties, unless there is a Model Checker Filter Category that explicitly addresses it." is under the Advanced check builder in the Configurator. We renamed "Category" to "Criteria". So if there is any Criteria listed that refers to a Method, or a Built-in Check that does, that's the only way to check against it.  To be honest, I can't see anything listed under Criteria that directly refers to a Method right now, so I'm not 100% sure what I was referring to.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
CADD Microsystems Blog
RVIT Blog | Twitter | LinkedIn
0 Likes
Message 13 of 15

skumar32BYCRR
Explorer
Explorer
Accepted solution

Wild card is not showing

Message 14 of 15

skumar32BYCRR
Explorer
Explorer
Accepted solution

I want to list of view filters used in revit modelsI want to list of view filters used in revit models

Message 15 of 15

skumar32BYCRR
Explorer
Explorer
Accepted solution

view filters.png

Please help me to list out view filters created but not used in any views.