'How to get the Dialog Box Message from a Revit Dialog Box Showing Event
I was wondering if there is a way to get the string message from the revit dialog box showing event. I am able to get the DialogId but not the description message of the revit warning.
public Result OnStartup(UIControlledApplication application)
{
application.DialogBoxShowing +=
new EventHandler<Autodesk.Revit.UI.Events.DialogBoxShowingEventArgs>(highlightedWallHandler);
return Result.Succeeded;
}
public void highlightedWallHandler(object sender,DialogBoxShowingEventArgs args)
{
// Get the string id of the showing dialog
string dialogId = args.DialogId;
//get message description
//args.Message == "Highlighted walls overlap. One of them may be ignored when Revit finds room boundaries. Use Cut Geometry to embed one wall within the other."
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
