public new static RevitDynamoModel Start(IRevitStartConfiguration configuration) { // where necessary, assign defaults if (string.IsNullOrEmpty(configuration.Context)) { configuration.Context = Configuration.Context.REVIT_2015; } return(new RevitDynamoModel(configuration)); }
private RevitDynamoModel(IRevitStartConfiguration configuration) : base(configuration) { DisposeLogic.IsShuttingDown = false; externalCommandData = configuration.ExternalCommandData; SubscribeRevitServicesUpdaterEvents(); SubscribeApplicationEvents(configuration.ExternalCommandData); InitializeDocumentManager(); SubscribeDocumentManagerEvents(); SubscribeTransactionManagerEvents(); SetupPython(); }
private RevitDynamoModel(IRevitStartConfiguration configuration) : base(configuration) { DisposeLogic.IsShuttingDown = false; externalCommandData = configuration.ExternalCommandData; RevitServicesUpdater.Initialize(DynamoRevitApp.ControlledApplication, DynamoRevitApp.Updaters); SubscribeRevitServicesUpdaterEvents(); SubscribeApplicationEvents(configuration.ExternalCommandData); InitializeDocumentManager(); SubscribeDocumentManagerEvents(); SubscribeTransactionManagerEvents(); MigrationManager.MigrationTargets.Add(typeof(WorkspaceMigrationsRevit)); SetupPython(); }