How to use a Performance Advisor Rule called "Too Large Family File"

How to use a Performance Advisor Rule called "Too Large Family File"

SONA-ARCHITECTURE
Advocate Advocate
619 Views
3 Replies
Message 1 of 4

How to use a Performance Advisor Rule called "Too Large Family File"

SONA-ARCHITECTURE
Advocate
Advocate

Hi,

With Performance Adviser, we can create our own rules.

But, 17 rules are already available in the RevitApi.dll

I'd like to know if one of you have already used this one :

de12e3b2-92da-48f2-a893-b422cf78d6bc, "Too Large Family File", "Family file is large in size; increasing overall Revit memory consumption.", True, Autodesk.Revit.DB.ElementClassFilter, True

Thx

Pierre NAVARRA
SONA-Architecture.
http://www.sona-architecture.com
https://fr.linkedin.com/in/pierre-navarra-62032a107
0 Likes
620 Views
3 Replies
Replies (3)
Message 2 of 4

yimin.chenTW
Alumni
Alumni

Hi @SONA-ARCHITECTURE ,

 

Not sure what you want to know about.

Is how to execute the rule or how does the rule you mentioned above work?

If it's the first one, you can check the sample code below.

List<int> rules = new List<int>();
rules.Add(7); // Add rule "Overlapping walls"
IList<FailureMessage> fMessages = PerformanceAdviser.GetPerformanceAdviser().ExecuteRules(doc, rules);
foreach (FailureMessage fm in fMessages)
{
	sel.SetElementIds(fm.GetFailingElements()); // highlight elements
	uiDoc.ShowElements(fm.GetFailingElements()); // zoom to elements
	TaskDialog.Show("revit", fm.GetDescriptionText());
}

 

Yimin Chen
Developer Consultant
Developer Technical Services
Autodesk
0 Likes
Message 3 of 4

SONA-ARCHITECTURE
Advocate
Advocate

Hi Yien , thx for answering.

my questrion is "how does the rule I mentioned above work?

 

Pierre NAVARRA
SONA-Architecture.
http://www.sona-architecture.com
https://fr.linkedin.com/in/pierre-navarra-62032a107
0 Likes
Message 4 of 4

yimin.chenTW
Alumni
Alumni

@SONA-ARCHITECTURE ,

 

Sorry for the late reply.
I just got the reply from the dev team.
They mentioned this rule should be triggered by runtime memory of all family members totaling over 3mb.
Hope it helps.😀

Yimin Chen
Developer Consultant
Developer Technical Services
Autodesk
0 Likes