void Initialize(ControlledApplication app) { // Fix the bug of Revit 2017.1.1 // More info read here: // https://revit-addins.blogspot.ru/2017/01/revit-201711.html RevitPatches.PatchCultures(app.Language); }
/// <summary> /// This method executes some tasks when Autodesk Revit /// starts. Typically, event handlers and updaters are /// registered in this method. /// </summary> /// <param name="ctrl_app">Handle to the Revit /// Application object.</param> /// <returns>Indicates if the external db application /// completes its work successfully.</returns> ExternalDBApplicationResult IExternalDBApplication .OnStartup(ControlledApplication ctrl_app) { // Fix the bug of Revit 2017.1.1 // More info read here: // https://revit-addins.blogspot.ru/2017/01/revit-201711.html RevitPatches.PatchCultures(ctrl_app.Language); // TODO: put your code here. return(ExternalDBApplicationResult.Succeeded); }
void Initialize(UIControlledApplication uic_app) { // Fix the bug of Revit 2017.1.1 // More info read here: // https://revit-addins.blogspot.ru/2017/01/revit-201711.html RevitPatches.PatchCultures(uic_app .ControlledApplication.Language); // Create the tabs, panels, and buttons UIBuilder.BuildUI(uic_app, Assembly .GetExecutingAssembly(), typeof(Resources)) ; }
/// <summary> /// This method will be executed when Autodesk Revit /// will be started. /// </summary> /// <param name="uic_app">A handle to the application /// being started.</param> /// <returns>Indicates if the external application /// completes its work successfully.</returns> Result IExternalApplication.OnStartup( UIControlledApplication uic_app) { // Fix the bug of Revit 2017.1.1 // More info read here: // https://revit-addins.blogspot.ru/2017/01/revit-201711.html RevitPatches.PatchCultures(uic_app .ControlledApplication.Language); // Create the tabs, panels, and buttons Tools.BuildUI(uic_app, Assembly .GetExecutingAssembly(), typeof(Resources)); // TODO: put your code here. return(Result.Succeeded); }