Methods, Import, Resynctoresources – Echelon OpenLNS User Manual

Page 305: Import m

Advertising
background image

OpenLNS Programmer's Reference

268

RegisteredComponent

SelfDocConsistency

SelfDocumentation

UserTypeFileName

XifPath

Methods

The DeviceTemplate object contains the following methods:

Import

ResyncToResources

Import

Summary

Import an external interface from an XIF or XFB file into a

device template. This updates the property values of the

device template with the information from the imported

external interface

.

The XFB file must be version 3.0 or later.
If you commission a device without an imported external

interface, which will cause the interface to be uploaded from

the device, you can invoke this method later to refresh the

external interface and incorporate the additional information

provided by the XIF file.
After you use the Import method on a DeviceTemplate , you

should call the ResyncToTemplate method on all of the

AppDevice objects using the DeviceTemplate to resynchronize

those devices with the updated information.

Availability

Local, full, and lightweight clients.

Syntax

devTemplateObject.Import xifPath

Element

Description

devTemplateObject The

DeviceTemplate

object being

acted upon.

xifPath

A String specifying the path of the

XIF and XFB files to be imported.

Added to API

LNS Release 3.0.

ResyncToResources

Summary

Resychronizes the

DeviceTemplate

with modified or newly

accessible device resource file information

.

You may need to resynchronize a DeviceTemplate if you

imported a device’s XIF, and the resource files for that device

were not available in the resource file catalog at that time. In

this case, some of the information contained in the

DeviceTemplate , including the formatting of its configuration

properties, may be invalid.
You could also use this method if the device resource files

Advertising