Like many other programs, EPLAN can also be started using a non-graphical user interface. To this purpose we provide you with appropriate command-line parameters which you can then enter via the Windows Command Prompt, on a different console, or with the Windows Run command.
The actual call of EPLAN is performed by specifying the executable file Eplan.exe. When specifying this command, you need to consider the file path where the EXE file was stored during installation.
Command syntax
Eplan.exe action /parameter1:value1 /parameter2:value2 /parameter3:value3
Command, action, and parameter are separated by spaces on the command line. For each command-line call, you may only specify one action to be carried out. All parameters that follow the action name in the command line and start with "/" or "-" are given to the action as parameters.
EPLAN provides you with several automatic actions which you can use to execute complete tasks from the command line without needing to see a dialog.
General command line parameters
In addition to the parameters of an action, you can also specify multiple general command line parameters on each command line. Without these general parameters, like /Auto, you cannot quit EPLAN automatically or start it invisibly. The general parameters must be given before the action name.
Eplan.exe /GenParameter Action /Parameter1:Value1
Note:
Pay attention to upper / lower case when entering command line parameters. The case of the action name and the parameter(s) must agree with the case shown here.
Using an automatic action named print, you can print the pages of a project or the entire project. Possible parameters of this action are, e.g.:
- /TYPE:PAGES (= type of print command, here: print pages)
- /PROJECTNAME (= project name with full file path)
- /PAGENAME (= the page to be printed).
The following input in the Windows Run command prints a page (=GB1+A1&EFS1/1) of the project ESS_Sample_Project for the EPLAN application EPLAN Electric P8:
"C:\Program Files\EPLAN\Electric P8\2.7.0\BIN\Eplan.exe" /Variant:"Electric P8" /NoSplash /Frame:0 /Auto /Quiet print /TYPE:PAGES/PROJECTNAME:"C:\Documents and Settings\All Users\Application Data\EPLAN\Electric P8\Projects\MyCompanyCode\ESS_Sample_Project.elk" /PAGENAME:=GB1+A1&EFS1/1
Due to the inclusion of the general command line parameters /NoSplash, /Frame:0, /Auto, and /Quiet, EPLAN is started invisibly, and is stopped again after the print command has been executed.
If an error occurs during the execution of a command line, it is logged in the system messages (under menu items Utilities > System messages).
See also
Automatic Actions for Command Line Operation