Back

Topic

[KB1126]Looking for generic import syntax

Tags: AE, Application Explorer, Import, Smart Generator

3 years ago
By LM
Options
Print
Applies to:

PcVue 12 onwards


Summary:

In order to get the xml property syntax, there is a simple trick you can activate.
Once done, you can select any objects in Application Explorer and copy it to the clipboard.


Details:

  1. Edit AIExplorerConfig.xml with PcVue stopped.
  2. Look for the key bDisplayExportToClipboard and change the field value from False to True:
    AIExplorerConfig
  1. Save your modification and restart PcVue.

In the Application Explorer if you right click on an object (variable, branch, device, nature, …) a new option Export to clipboard appears:

AE export to clipboard

You have two options:

  • Simple click on Export to clipboard then paste in an editor gives

<Collection type=”Branches” id=””>
<Item id=”BUILDING”>
<Property id=”DescriptionLang0″></Property>
<Property id=”DescriptionLang1″></Property>
</Item>
</Collection>

  •  Shift and click on Export to clipboard gives the full generic import syntax. The resulting xml file can be imported in PcVue using Smart Generator / Generic import

<?xml version=”1.0″ encoding=”utf-8″?>
<Import>
<Group customRef=”FirstStep”/>
<Group customRef=”IntermediateStep”>
<Collection type=”Branches” id=””>
<Item id=”BUILDING”>
<Property id=”DescriptionLang0″/>
<Property id=”DescriptionLang1″/>
</Item>
</Collection>
</Group>
<Group customRef=”LastStep”>
<!– <Item type=”CimwayConfiguration”><Command id=”Save” OnDelete=”1″/></Item>–>
</Group>
</Import>

To import such xml files into PcVue dynamically, please take a look at the online help or this article How to import an XML configuration file.


Created on: 02 Aug 2021 Last update: 30 May 2024