The Autodesk.Revit.DB.DisableAnalyticalModelCB class is a callback helper class in Revit that disables the analytical model.
public delegate bool DisableAnalyticalModelCB(Element e, AnalyticalModel analyticalModel);
e - The element to be disabled.analyticalModel - The analytical model to be disabled.The bool value true if the analytical model is disabled; otherwise, false.
This callback helper class is used in conjunction with the ElementExtensions.DisableAnalyticalModel() method to disable the analytical model of the specified element.
public void DisableAnalyticalModel(Element element)
{
DisableAnalyticalModelCB callback = new DisableAnalyticalModelCB(DisableAnalyticalModel);
bool disabled = element.DisableAnalyticalModel(callback);
}
private bool DisableAnalyticalModel(Element e, AnalyticalModel analyticalModel)
{
return true;
}
In the example above, the DisableAnalyticalModel() method uses the DisableAnalyticalModelCB callback helper class to disable the analytical model of the specified Element object. The DisableAnalyticalModelCB delegate returns true to indicate that the analytical model should be disabled.
ElementExtensions.DisableAnalyticalModel()