public Result OnStartup(UIControlledApplication application) { CreateRibbonPanel(application); ModelessWindowHandle.SetHandler(application.MainWindowHandle); ExternalExecutor.CreateExternalEvent(); return(Result.Succeeded); }
public Result OnStartup(UIControlledApplication application) { ModelessWindowHandle.RevitMainWindowHandle = application.MainWindowHandle; ExternalExecutor.CreateExternalEvent(); AddMenu(application); AddAppDocEvents(application.ControlledApplication); return(Result.Succeeded); }