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. You can find an overview of these actions in the section "EPLAN Actions: Overview".
If the parameter for the project name (/PROJECTNAME) is not given for an automatic action, the last project opened will be used.
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 EPLAN_Sample_Project for the EPLAN application EPLAN Electric P8:
"C:\Program Files\EPLAN\Electric P8\<Version number>\BIN\W3u.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\EPLAN_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 (command path: File > Extras > Command group System > System messages > System messages).
See also