This functionality is only available for certain module packages. Info / Copyright

Simple Scripts for Settings

Simple scripts can also be used to read and change a setting from the Settings dialog.

Note:

This does not apply for project settings!

Before you can read out a setting, you first have to find the name of the setting. To do this, switch on a hidden menu with the following C# script:

public class SetSettingScript
{

     [Start]
     public void SetSetting()
     {

           Eplan.EplApi.Base.Settings oSettings = new Eplan.EplApi.Base.Settings();
           oSettings.SetBoolSetting("USER.EnfMVC.ContextMenuSetting.ShowExtended", true, 0);
           return;

     }

}

After you have executed the script, you first have to restart EPLAN. In the context menu of the Settings dialog, you will then have the Copy path for setting to Clipboard option. Execute the menu item for a setting and copy the name to the ClipBoard. Thus, the name of the Display identifying numbers setting is, for example, USER.SYSTEM.GUI.SHOW_PROPERTY_NR. You can then use this name in a script to modify or read out the corresponding setting.


See also