Automated importing of the projects from TC6 XML files
Neuron Power Engineer provides a tool for the automated import of Neuron Power Engineer projects from a TC6 XML file. This file might have been created by Neuron Power Engineer when performing a TC6 export.
Good to know |
---|
The tool is intended for usage by an experienced user of Neuron Power Engineer. A condition for the successful usage of the tool is the knowledge of the action to be executed as it would be executed in the graphical user interface of Neuron Power Engineer. The output of the tool is in English only. |
In this article: |
---|
Preparation
-
Make sure that Neuron Power Engineer is installed. Have the following information prepared:
-
The path to the Neuron Power Engineer installation directory
-
The path to an existing directory that will be used as the workspace
If the optional parameter-checkEmptyWorkspace
is used (see the description of this parameter below), the directory must be empty. -
The path to the file that should be imported
-
The path to the log configuration file (see below for more information)
A sample configuration file is included in the installation of Neuron Power Engineer.
-
-
Open a command line: e.g.
cmd.exe
under Windows and navigate to the Neuron Power Engineer installation directory.
Invocation
Parameters that are placed within []
are optional. That means, if you skip the parameter, the default behavior is applied (see below under "Description of parameters"). When you want to use the parameter, do not enter the character [
and ]
(see the below examples).
|
Invoking the tool under Linux is not officially supported. However, if you want to try invoking the tool under Linux nevertheless, replace the part NeuronPowerEngineerc --launcher.ini NeuronPowerEngineer.ini -application
of the above-mentioned invocation by NeuronPowerEngineer -application
. The remaining part of the invocation is identical to the above-mentioned invocation.
Description of parameters:
Parameter |
Description |
Example |
---|---|---|
|
absolute path to the project that should be imported Without this parameter, the project is automatically created in the workspace (see the following description for |
|
|
absolute path to a workspace to which the project should be imported
|
|
|
path to the log configuration file |
|
|
Example for invocation, incl. check of the empty workspace |
---|
|
Log configuration file
This file is needed to configure the log4j logging mechanism. The file specifies how log events are output.
Sample log configuration file |
---|
|
Troubleshooting
The file that is specified in the log configuration file contains information about the import. If the import has not been successful, fix the problem according to the following table.
Return code |
Message on STDOUT or STDERR |
Cause |
Solution |
---|---|---|---|
|
|
|
|
|
|
An argument or parameter is missing. |
Invoke the tool as specified above. |
|
|
The workspace already contains data (e.g. one or more Neuron Power Engineer projects). |
If you have specified the parameter |
|
|
The specified XML-file does not exist. |
Specify an existing XML-file. |
|
|
An unexpected error has occurred. |
Contact Neuron. |