Esempio n. 1
0
        /// <summary>
        /// How to draw point of connection
        /// </summary>
        /// <param name="drawMode"> 3 - default. 2 - for printing</param>
        private void ChangeDrawMode(Project currentProject, int drawMode)
        {
            Eplan.EplApi.DataModel.ProjectSettings projectSettings = new Eplan.EplApi.DataModel.ProjectSettings(currentProject);

            string befor = projectSettings.GetExpandedStringSetting("TrDMProject.Wiring", 0);

            projectSettings.SetNumericSetting("TrDMProject.Wiring", drawMode, 0);

            //DoWireMarking.DoWireMarking.MassageHandler($"Befor { befor }\nAfter { drawMode }");
        }
Esempio n. 2
0
        private void ChangeFontType(Project oProject, string font)
        {
            Eplan.EplApi.DataModel.ProjectSettings projectSettings = new Eplan.EplApi.DataModel.ProjectSettings(oProject);

            projectSettings.SetStringSetting("GedViewer.Fonts", font, 0);
            projectSettings.SetStringSetting("GedViewer.Fonts", font, 1);

            //DoWireMarking.DoWireMarking.MassageHandler($"Font { projectSettings.GetStringSetting("GedViewer.Fonts", 0)}");

            //projectSettings.Dispose();
        }