- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I am able to track File Save Event as below
public Autodesk.Revit.UI.Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
this.uidoc = commandData.Application.ActiveUIDocument;
Autodesk.Revit.ApplicationServices.Application revitApplication = commandData.Application.Application; Autodesk.Revit.ApplicationServices.Application app; Autodesk.Revit.UI.UIApplication m_app; m_app = commandData.Application;
app = m_app.Application;
commandData.Application.ActiveUIDocument.Document.DocumentSaving += Document_DocumentSaving; MessageBox.Show("We are in process", "TITLE", MessageBoxButtons.OK, MessageBoxIcon.Warning);
return Autodesk.Revit.UI.Result.Succeeded;
}
private void Document_DocumentSaving(object sender, Autodesk.Revit.DB.Events.DocumentSavingEventArgs e)
{
MessageBox.Show("We are at Save event", "TITLE", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
My Requirement is to track the external plug-in button press event, (If say One external plug-in loaded in ribbon, and if user presses one of the button, function need to notify) and prior OR after running that function i need to run my own function.
Thanks in advance for your kind support.
Regards,
Raj
Solved! Go to Solution.
Developer Advocacy and Support +