Echelon LonWorks Network XML User Manual

Page 13

Advertising
background image

L

ON

W

ORKS

Network XML Programmer’s Guide

5

Property Name

Type

Description

exported data.

TemplateExport Long Specifies

which

device

templates are to be included in the

exported XML file. Specify one of the following options:

0. Reports all device templates defined in the network.

This is the default.

1. Does not report any device templates.
2. Reports only device templates that are referenced in

the exported data.

ConnDescExport

Long

Specifies which connection description templates are to be
included in the exported XML file. Specify one of the
following options:

0. Reports all connection description templates defined

in the network. This is the default.

1. Does not report any connection description

templates.

2. Reports only connection description templates that

are referenced in the exported data.

ExportComment

BSTR

Inserts a comment as a text string in the exported XML file.

ExportScope

Long

Specifies the subsystems to be included in the exported
XML file. The application devices and routers located in
the specified subsystems are included in the exported XML
file. Specify one of the following options:

0. Reports all subsystems. Ignores the subsystem

specified in the

SendCommand request. This is the

default.

1. Reports the subsystem specified in the

SendCommand request and all of its nested
subsystems.

2. Reports only the subsystem specified in the

SendCommand request. Nested subsystems are not
reported.

The following example adds code to set optional export properties.

using

System;

using

System.Collections.Generic;

using

System.IO;

using

System.Text;

using

System.Threading;

using

System.Xml;

using

PlugInWrapper;

namespace

myLmXmlNetwork

{

class

myLmXmlNetwork

{

static

void

Main(

string

[] args)

{

LonMakerXmlPlugIn

m_lmXml =

new

LonMakerXmlPlugIn

();

m_lmXml.NetworkName =

"MyXmlNetwork"

;

Advertising