Exemple #1
0
        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()
            }));
        }
Exemple #2
0
        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)
            }));
        }