Create/Assign custom made warnings

Create/Assign custom made warnings

Anonymous
Not applicable
3,275 Views
9 Replies
Message 1 of 10

Create/Assign custom made warnings

Anonymous
Not applicable

Hi!

 

I want to make on-screen warnings related to formulas in families I make. 

Previously I have made warnings via formula-driven labels within families. 

 

But I want the warning to appear like they do in Reivt - Warning - Can be ignored/Cannot be ignored. 

 

This is to give instant feedback to our 240 students on the building engineering studies at Oslo Metropolitan University - OsloMet. Then we can use Revit to teach them building professions as they model, e.g. if beams are too long, rooms are to small or narrow, and so forth. 

 

Is it possible to make that kind of warnings myself?

 

Thanks in advance, 

 

Tor Tollnes, senior engineer

Accepted solutions (1)
3,276 Views
9 Replies
Replies (9)
Message 2 of 10

Ilic.Andrej
Advisor
Advisor

Hello,

 

You can nest a generic annotation and then constrain its visibility with a parameter which has a formula assigned to it.  But this works in loadable families....

 

Try with Dynamo



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Message 3 of 10

Anonymous
Not applicable
Hi!

Thank you, that is what I have been doing so far.
I really want to take it one step further into creating a standard Revit warning like those who shows in a separate window, and possibly cannot be ignored.

This is to stop my students the moment they're modelling something that is not buildable. The intention is to give them a warning they cannot ignore, and tell them which action to take.

Is it possible to make?

Best regards,

Tor Tollnes

0 Likes
Message 4 of 10

Ilic.Andrej
Advisor
Advisor

If this is possible, you need to access the list of Revit Warnings. I don't have time to research. See if this helps https://www.youtube.com/watch?time_continue=3&v=mxjeEhj2KV4



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes
Message 5 of 10

ToanDN
Consultant
Consultant

@Anonymous wrote:
Hi!

Thank you, that is what I have been doing so far.
I really want to take it one step further into creating a standard Revit warning like those who shows in a separate window, and possibly cannot be ignored.

This is to stop my students the moment they're modelling something that is not buildable. The intention is to give them a warning they cannot ignore, and tell them which action to take.

Is it possible to make?

Best regards,

Tor Tollnes


I would separate Revit warnings from your warnings because they are for different things.  Revit warnings are for technical issues and yours are for code/ordinance violations.  Plus, when you update to another Revit version you will have to hack it again.

 

Keep it simple by a custom text/label, add strong colors, violent graphics, nasty language if you want to get the point across more effectively.

Message 6 of 10

barthbradley
Consultant
Consultant

#$@&%*!  usually get's their attention. 

Message 7 of 10

Anonymous
Not applicable

Thank you! 

 

My original plan was doing as you say, and possibly that is the best solution. 

So, if I make a custom made warning with dynamo, I will have to remake it with every new version of Revit?

 

Tor Tollnes

0 Likes
Message 8 of 10

Ilic.Andrej
Advisor
Advisor
Accepted solution

That depends on the new Revit version. If this is really what you want, just make it. When you update to new version, test. You want to access the warnings- maybe it wont be changed....

 

I'm not a fan of Dynamo. Maybe some day I'll find time to learn c# basics and the API guide. People who use it have the power. Check out this thread - http://archi-lab.net/how-to-maintain-revit-plug-ins-for-multiple-versions/

 

Maybe you have some friends who are programmers? You can do what you can with dynamo and ask them for help. The code can be adapted for new versions. 



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

0 Likes
Message 9 of 10

Anonymous
Not applicable
Thank you!! I will have a look into it!

Best regards,

Tor Tollnes
0 Likes
Message 10 of 10

sals1
Explorer
Explorer
0 Likes