It is possible to export in the application editor
by means of the local menu over any PROMOTIC object in the Export
item. Either the whole object or selected set of its subobjects (or all subobjects) can be exported. If the PmRoot
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 PmFolder
folders, ..), delete elements that, for example, shouldn't be imported, etc.
- add the directives that control the import method. See the description of the XML file structure Directions_XMLformat
Import of XML file can be selected from local menu in any PROMOTIC object in the "Import into object ...
Assume, for example, that the object of the PmPanel type was exported with the name Panel0 into the file Panel0.xml and assume that the folder (i.e. object of the PmFolder type) named Data exists in the project. This folder contains no objects in itself.
1) Click by the right mouse button over the Data
object and select the "Import into object ...
" item. In the next steps select the file Panel0.xml
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 object Panel0 is exported from the XML file, the object of the same type and name (as created in step 1) is found in the Data folder, so no new subobject was created but the import was performed into the already existing object Panel0
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 folder, 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 file Panel0.xml
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).