Revit Model Checker - Material and parameter check

Revit Model Checker - Material and parameter check

Anonymous
Not applicable
6,989 Views
20 Replies
Message 1 of 21

Revit Model Checker - Material and parameter check

Anonymous
Not applicable

Hello,

 

I'm trying to configure 2 specific check :

1 - Listing all Materials names in the model

2 - I want to check if a Project Parameter or a Shared Parameter exists in the model

 

Problem :

1 - I dont know how to get this list

2 - I don't know what is the Built-in Parameter name of a Project Parameter/Shared parameter to check if it exists

0 Likes
6,990 Views
20 Replies
Replies (20)
Message 2 of 21

Viveka_CD
Alumni
Alumni

Hi @Anonymous

 

Can you share a model to test and what version of Revit you use?

 

Regards,

 

0 Likes
Message 3 of 21

Anonymous
Not applicable

Hi @Viveka_CD, I'm using Autodesk example (architectural and/or the MEP) models and Revit 2018.3.

0 Likes
Message 4 of 21

Anonymous
Not applicable

@Viveka_CD

Do you want me to send the XML file I'm using for the test ?

0 Likes
Message 5 of 21

Avaris.
Advisor
Advisor
0 Likes
Message 6 of 21

Anonymous
Not applicable

Thank you for the APP tip but I want to use the BIM Interoperability tool so I don't have to run several tools and then concatenate datas.

0 Likes
Message 7 of 21

Viveka_CD
Alumni
Alumni

@Anonymous wrote:

@Viveka_CD

Do you want me to send the XML file I'm using for the test ?

 


Hi @Anonymous

Yes, please send us all the files to test further.
Revit - Collecting and sending diagnostic data to Autodesk Technical Support

 

Regards,

 

0 Likes
Message 8 of 21

Anonymous
Not applicable

Here are the files I use.

0 Likes
Message 9 of 21

JasonKunkel
Collaborator
Collaborator

For the Material List, if you build a check with a single filter of the category OST_Materials, this should give you what you need. I have attached a sample. I'll try to dive into the parameters question. That may be more difficult.

 

 


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
LinkedIn
Message 10 of 21

Anonymous
Not applicable

Ok, thank you, I'll try this option.

0 Likes
Message 11 of 21

Anonymous
Not applicable

Thank you @JasonKunkel, that was exactly what I was looking for.

 

I have another question, maybe you know the answer.

 

I'm trying to build a check where I give the user an opportunity to check if a parameter is here and if it's associated to a specific category.

 

Here is what I built but it doesn't work.

 

parameter check.PNG

0 Likes
Message 12 of 21

JasonKunkel
Collaborator
Collaborator

Glad the Material check worked.

For the parameters - there is no way to let users input the name of a parameter to check against a category. If you already know the category and parameter name, you can see if it has been assigned with a check like this:

myparam.png

This check will look for a parameter called "My Parameter" in the Walls category and fail if it that parameter isn't assigned to that category.

 

If you need user input for the Parameter name, you can create a check that allows that to see if it's in the model. However, you cannot filter that down to a category. That would look like this (needs some testing):

mypname.png

 

This may be way too deep, but hopefully it will help you with the Model Checker. As a rule, for the Advanced checks, the Model Checker can take "one step" deep into the Revit database. I can go to the Walls and see if they have a specific parameter because that information is in the Wall element. In the Revit database, going from the parameter to all the categories it is associated with is actually "two steps", because I have a table of parameters, but I also have a table of categories. The parameter just refers to the category table to know where it is assigned. That data isn't "inside" the parameter element.

 

I might have made that more confusing than I meant to. If you are not using the Revit Lookup tool (2019 installer here), I would strongly suggest downloading it and installing it. This gives you a peek into Revit as a database structure and is extremely useful when trying to build more complicated checks.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
LinkedIn
Message 13 of 21

Anonymous
Not applicable

Very nice plug-in you gave me ! Thank you.

 

I tried to set a test as you described and check if the "Comments" parameter existed but it gives an error.

 

I wrote this :

test.PNG

 

And it gave me this message :

fail.PNG

Any idea why it's not working ?

0 Likes
Message 14 of 21

JasonKunkel
Collaborator
Collaborator

Sorry, I didn't clarify. This will only work with custom parameters. Since "Comments" is a built in parameter, this check won't find it. You need to test with a project or shared parameter that you created in the project.

 

Are you looking to see if a parameter EXISTS or if it HAS VALUES in it? I thought you were just checking if a parameter exists in the model.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
LinkedIn
0 Likes
Message 15 of 21

Anonymous
Not applicable

Oh, ok, it's fine if it checks only with custom parameters.

 

I was trying with Comments because it's a common parameter.

 

I'm looking to see if a parameter exist. Then I might look for the value but first if it exists.

0 Likes
Message 16 of 21

Mostafa.M.Ahmed
Explorer
Explorer

Hii @JasonKunkel 
Speaking of the materials and the model checker.
I tried to check the material of all the placed model elements and list the elements without material but I am stuck. As an expert, you may have a solution and are happy to share it with us. Thanks in advance.

MostafaMAhmed_0-1675674661906.png

 

0 Likes
Message 17 of 21

jzhangDZ5QR
Explorer
Explorer

Hi All

 

I also have a quite same question regarding on list down the project parameter in auto checker report. Is there any way to list out how per project parameter name in model checker report. thx

0 Likes
Message 18 of 21

gabrielchiew
Contributor
Contributor

Hello, @Anonymous 

 

I am not sure if you found the solution since it has been years, but this helped me to search for either parameter (Komponen_IBS_jkr_sty or Tarikh_CMGD_jkr_sit) does not exist in the element. 

 

gabrielchiew_0-1713321064127.png

 

Model Checker will show the report fail, if either parameter does not exist in the listed categories. 

 

Hope this helps.

0 Likes
Message 19 of 21

gsucciXHCQR
Contributor
Contributor

Hi Gabriel,

 

how did you get the name of those custom parameters ("Komponen_IBS_jkr_sty" or "Tarikh_CMGD_jkr_sit") to show in the "Property" field of that "Parameter" line?

 

I don't get any custom / shared parameter, only a list of all built-in parameters (and they are all capital letters, with words separated by underscores).

 

Thank you

0 Likes
Message 20 of 21

JasonKunkel
Collaborator
Collaborator

You are able to type in whatever name you need in the "Property" field of the "Parameter" line. It prepopulates with built-in parameters, but you just highlight with your mouse and type whatever you need in that field to make your filter.


Jason Kunkel
Senior Practice Manager, Architecture and Engineering
LinkedIn
0 Likes