List of all possible Revit warning types and related AttributeIds?

List of all possible Revit warning types and related AttributeIds?

Samuel.Arsenault-Brassard
Advocate Advocate
966 Views
6 Replies
Message 1 of 7

List of all possible Revit warning types and related AttributeIds?

Samuel.Arsenault-Brassard
Advocate
Advocate

Every Revit warning has an internal "AttributeId" category. Example:

 

505d84a1-67e4-4987-8287-21ad1792ffe9 - One element is completely inside another.

7240576f-66ca-40e7-bc79-be5af5f891f5 - Insert conflicts with joined Wall.

 

Is there a repository that has this complete list of warning and their associated "AttributeId"? Otherwise, we can only discover the warning for exporting a file that has the error in it. But how are we supposed to expose all the warning types in this manner? We can't just "discover" all the errors that are possible in Revit.

 

I'm in the process of categorizing the severity of each warning in each Revit version.

0 Likes
Accepted solutions (1)
967 Views
6 Replies
Replies (6)
Message 2 of 7

Omar_Amen
Advocate
Advocate
Accepted solution

Hi @Anonymous,
you can access all the Revit warnings and all Failures from Application.GetFailureDefinitionRegistry();
then you can filter only the warnings,
after filtering the warnings you can get the warning name using .GetDescriptionText();
and you can get the GUID using .GetId();


warnings IDs.png

 

0 Likes
Message 3 of 7

Samuel.Arsenault-Brassard
Advocate
Advocate

Thanks Omar,

 

My issue is not how to get the warnings, but how to get all possible warnings, meaning the ones that are not present in the file.

 

It's impossible to create a file with all possible warnings if you don't know all possible warnings. Even if you did, it would be a very painful and long winded exercise to make a file with all possible warnings.

 

I'm making a classification system to identify the severity of each warning so it can be used in PowerBI to analyze all warnings and, for example, ignore all low severity warnings. But I cannot classify warnings that are not present in my example files.

 

This is why I'm looking for a documented universal list of all potential warnings.

Message 4 of 7

Omar_Amen
Advocate
Advocate

if I understand your needs, you want to retrieve all possible warnings in the Revit application itself not my Revit document file, don't you?
the code retrieves all possible warnings (1175 warning type), I've executed the script on an empty Revit file with 0 warnings,
 Do I understand your query well ? 😅

0 Likes
Message 5 of 7

Samuel.Arsenault-Brassard
Advocate
Advocate

Oh fantastic! Sorry for my misunderstanding! 😅

 

I don't code but I will get one of our programmers to do this for us. Thank you so much!! 🙏

Message 6 of 7

Omar_Amen
Advocate
Advocate

Thanks Samuel for your appreciation 😊

I didn't know that you just need an excel file so here you are ^^
*Exported from my Revit 2021 version, in case of the IDs values changes from version to another

Message 7 of 7

Samuel.Arsenault-Brassard
Advocate
Advocate

OMG, thank you so much!!! This is super helpful as my devs are busy on other items at the moment 🙏🙏🙏