private static AdvanceSteelModel InitializeCoreModel() { string corePath = DynamoAdvanceSteelApplication.DynamoCorePath; return(AdvanceSteelModel.Start( new Dynamo.Models.DynamoModel.DefaultStartConfiguration() { GeometryFactoryPath = GeometryFactoryPath, //Preferences = prefs, DynamoCorePath = corePath, SchedulerThread = new SchedulerThread(), PathResolver = new AdvanceSteelPathResolver() })); }
private static AdvanceSteelModel InitializeCoreModel() { string corePath = DynamoAdvanceSteelApplication.DynamoCorePath; var userDataFolder = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Dynamo", "Dynamo Advance Steel"); var commonDataFolder = System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Dynamo", "Dynamo Advance Steel"); return(AdvanceSteelModel.Start( new Dynamo.Models.DynamoModel.DefaultStartConfiguration() { GeometryFactoryPath = GeometryFactoryPath, DynamoCorePath = corePath, SchedulerThread = new SchedulerThread(), PathResolver = new AdvanceSteelPathResolver(userDataFolder, commonDataFolder) })); }