Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page DDI file preparation  Creating and using a custom object in Axxon PSIM Next page


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

 

An XML file for a custom object is created as follows:

  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 has_child checkbox (3).
  4. Repeat steps 1-3 for all object types.
  5. Save the file with any name and .xml extension in the Axxon PSIM installation directory using the File Save command. For example, the "CUSTOM.xml" file name is recommended for the object shown on the picture above.

The XML file is now created. The file contents look like this:

<?xml version="1.0" standalone="yes"?>
<objects>
<object>
<object_type>CUSTOM</object_type>
<parent_type>SLAVE</parent_type>
<has_child>1</has_child>
</object>
<object>
<object_type>CUSTOM_CHILD</object_type>
<parent_type>CUSTOM</parent_type>
</object>
</objects>

You can edit it manually if required.

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

  • No labels