Update cookies preferences
Promotic

Import/Export in the Pma objects editor

It is possible to export in the Pma objects editor by means of the context menu over any Pma object in the "Export object content ..." item.
Either the whole object or selected set of its subobjects (or all subobjects) can be exported. If the PmaRoot object is exported, then it is advisable to export only its subobjects.

In the following text the basic possibilities of the import of such created file are described. Files can be modified manually (in any text editor).
- add individual elements (for example, copy the whole objects into it, or contents of the PmaFolder object, ...), delete elements that, for example, shouldn't be imported, etc.
- add the directives that control the import method. See Description of the PROMOTIC XML files for Import/Export.


Import of XML file can be selected in the context menu in any Pma object in the "Import into the object ..." item.

Example:
Assume, for example, that the object of the PmaPanel type was exported named "Panel0" into the Panel0.xml file and assume that the folder (i.e. object of the PmaFolder type) named "Data" exists in the application. This folder contains no objects in itself.

1) Click by the right mouse button over the Data object and select the "Import into the object ..." item. In the next steps select the Panel0.xml file and leave the import type option to Import="Replace" DefImport="Replace".
New subobject Panel0 imported from the XML file is created in the Data object.

2) Repeat the same walkthrough from the step 1.
Visually nothing happens but the import proceeded as follows: the Panel0 object is exported from the XML file, the Data object of the same type and name (as created in step 1) is found in the Data object, so no new subobject was created but the import was performed into the already existing Panel0 object

3) Repeat the same walkthrough from the step 1, only select the import type Import="AddWithNewName" DefImport="Replace".
New subobject with new generated name Panel1 is created in the Data object: despite the object of the same type and name was found in the Data object, though new subobject was created into which the import from the XML file was made.

4) Click by the right mouse button over the Data object and select the "Import to parent object" item. In the following steps select the Panel0.xml file and keep the import type option to Import="Replace" DefImport="Replace".
New object Panel0 is created on the same level as the Data object, imported from the XML file (if it didn't exist before).
PROMOTIC 9.0.28 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.