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

Simple Scripts with EPLAN Actions

You also have the option of integrating automatic actions in a simple script. Using these EPLAN actions you can automatically run different program functions (e.g. Back up data, Print, etc.).

After the class, the [Start] attribute and the function, you have to specify the parameter set for the action in the script and then run the action via CommandLineInterpreter().Execute().

The overall structure of such a simple C# script thus looks like this:

public class <ScriptName>
{

     [Start]
     public void <FunctionName>
     {

           ActionCallingContext <ActionName>Context = new ActionCallingContext ();
           <ActionName>Context .AddParameter("<ActionParameter1>","<Value>");
           <ActionName>Context .AddParameter("<ActionParameter2>","<Value>");
           ...
           new CommandLineInterpreter().Execute("<ActionName>",<ActionName>Context);
           return;

     }

}

Tip:

The Automated processing function (under Utilities) uses simple scripts to automate actions. You can use these scripts to create new scripts. Before you can run these scripts using the menu items Utilities > Scripts > Run, you first have to remove the String ProjectName parameter for the AutoTreat function along with the line where this parameter is used.

See also