// test revit setting functions
        private void test112()
        {
            RevitSettingsUnitApp a = RsuApp;
            SchemaDictionaryApp  b = RsuAppSetg;

            RevitSettingsUnitUsr       c = RsuUsr;
            List <SchemaDictionaryUsr> d = RsuUsrSetg;

            bool init = RvtSetgInitalized;

            logMsg("\n");
            logMsgDbLn2("revit Settings", "before");
            logMsg("\n");

            logMsgDbLn2("revit setting initalized", RvtSetgInitalized.ToString());

            // reset must be first in order to initialize system - yes?
            logMsg("\n");
            logMsgDbLn2("revit Settings", "init");
            RsMgr.Init();
            ListRevitSettings();

            init = RvtSetgInitalized;

            logMsg("\n");
            logMsgDbLn2("revit Settings", "read");
            RsMgr.Read();
            ListRevitSettings();

            logMsg("\n");
            logMsgDbLn2("revit Settings", "revise values & save");

            RsuUsrSetg[0][VERSION_UNIT].Value = "10.0";
            RsuUsrSetg[0][USER_NAME].Value    = "jeffs";

            logMsg("\n");
            logMsgDbLn2("revit Settings", "save");
            RsMgr.Save();
            ListRevitSettings();

            return;

            logMsg("\n");
            logMsgDbLn2("revit Settings", "revise values & don't save");

            RsuUsrSetg[0][VERSION_UNIT].Value = "1.1";
            RsuUsrSetg[0][USER_NAME].Value    = "none";

            logMsg("\n");
            logMsgDbLn2("revit Settings", "read");
            RsMgr.Read();
            ListRevitSettings();
        }
Beispiel #2
0
        // test transfer settings from user to revit and visa versa
        private void test101()
        {
            logMsgDbLn2("Settings", "before");
            logMsg("");

            logMsgDbLn2("config Settings", "before");
            logMsg("");

            ListConfigSettings();

            logMsgDbLn2("revit Settings", "before");
            logMsg("");

            logMsgDbLn2("revit setting initalized", RvtSetgInitalized.ToString());

            ListRevitSettings();
        }
Beispiel #3
0
        // test revit setting functions
        private void test112()
        {
            logMsgDbLn2("revit Settings", "before");
            logMsg("");

            logMsgDbLn2("revit setting initalized", RvtSetgInitalized.ToString());

            ListRevitSettings();

            logMsg("");
            logMsgDbLn2("revit Settings", "reset");
            RsMgr.Reset();
            ListRevitSettings();

            logMsg("");
            logMsgDbLn2("revit Settings", "save");
            RsMgr.Save();
            ListRevitSettings();
        }