private void ControlledApplication_FileImporting(object sender, Autodesk.Revit.DB.Events.FileImportingEventArgs e) { // When the event fires off, see if the imported thing is a DWG. If it is, execute our logic if (e.Format is ImportExportFileFormat.DWG) { e.Cancel(); TaskDialog.Show("CAD Import Failed", "Yeah, sorry no cad imports for you"); } }
void m_app_FileImporting(object sender, Autodesk.Revit.DB.Events.FileImportingEventArgs e) { DisplayEvent("File importing"); }
public void Application_FileImporting(object sender, Autodesk.Revit.DB.Events.FileImportingEventArgs e) { ExecuteEventHooks(EventType.Application_FileImporting, sender, e); }
private void ControlledApplication_FileImporting(object sender, Autodesk.Revit.DB.Events.FileImportingEventArgs e) { throw new NotImplementedException(); }