Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

An XML The xml file is prepared using the CustomTypeEditor.exe utility that can be found is located in the <Axxon PSIM installation directory>\ToolsTools64 folder. The general view of the utility window is shown in the figure below.

 

An XML To create the xml file for a custom object is created as follows, do the following:

  1. In the object_type field (1), enter the name of the object type.
  2. In the parent_type field (2), enter the name of the parent type.
  3. If the object type has child types, then set the checkbox in the has_child checkbox column (3).
  4. Repeat steps 1-3 for all object types.
  5. Save the file with any name and the .xml extension in the Axxon PSIM installation directory using the File Save menu command. For example, the "CUSTOM.xml" file name is recommended for the object shown on in the picture above.

The XML Creating the xml file is now createdcomplete. The file contents look like this:created file has the following content:

Code Block
languageshell
<?xml version="1.0" standalone="yes"?>

...

<objects>
<object>

<objects>
    <object>
        <object_type>CUSTOM</object_type>

...


        <parent_type>SLAVE</parent_type>

...


        <has_child>1</has_child>

...

   
</object>

...

<object>

    <object>
        <object_type>CUSTOM_CHILD</object_type>

...

        
		<parent_type>CUSTOM</parent_type>

...


    </object>

...


</objects>

...

In particular, you can add the <include_parent_id>1</include_parent_id> object parameter can be added to an XML to the xml file. When setting you set the value of this parameter to 1, the IDs of the child custom objects will include the ID of the parent object. For example, if a the CUSTOM object has a child the CUSTOM_CHILD child object, and the ID of the CUSTOM has ID = object is 3, then the CUSTOM_CHILD objects will be are created with identifiers 3.1, 3.2, and so on.

...