UDT import and export

Ignition 7.6.2

When a folder of UDT’s is exported, it does not import correctly. This is because when it is exported, Ignition doesn’t include the path for the folder. When it is imported it doesn’t put the folder in Data Types, it puts it in Tags. Below are examples that have the UDTs trimmed to one tag.

This creates a folder called Unit in the Tags folder. The UDT Unit_Charts is created, but not shown because the folder doesn’t exist. This can be shown if there is an instance of that data type. If it exists, count_T is shown in the instance.

<Tags>
   <Tag name="Unit" path="" type="Folder"/>
   <Tag name="Unit_Charts" path="Unit" type="UDT_DEF">
      <Property name="Value"/>
      <Property name="DataType">2</Property>
      <Tag name="count_T" path="" type="DB">
         <Property name="Value"/>
         <Property name="DataType">2</Property>
         <Property name="ExpressionType">1</Property>
         <Property name="Expression">{[.]/../../counts/LOG_DELTA}</Property>
      </Tag>
   </Tag>
</Tags>

The xml files can be edited to change the folder path to “types”. The folder is then created in the Data Types folder.

<Tags>
   <Tag name="Unit" path="_types_" type="Folder"/>
   <Tag name="Unit_Charts" path="Unit" type="UDT_DEF">
      <Property name="Value"/>
      <Property name="DataType">2</Property>
      <Tag name="count_T" path="" type="DB">
         <Property name="Value"/>
         <Property name="DataType">2</Property>
         <Property name="ExpressionType">1</Property>
         <Property name="Expression">{[.]/../../counts/LOG_DELTA}</Property>
      </Tag>
   </Tag>
</Tags>

Hi,

Thanks. Yes, this appears to happen when you select one of the sub folders for export. If you export everything, it appears to be correct. It’s too late to fix this for 7.6.3, but it should be in 7.6.4.

Regards,

Just to confirm, this will in fact be fixed in the 7.6.4 release.

Thank you for confirming that it is fixed in the 7.6.4 release.