L-VIS User Manual
77
LOYTEC
Version 6.2
LOYTEC electronics GmbH
NOTE:
The XML export and import functions are intended to be used for custom tools which may
be able to build a complete project (in XML format) out of basic building blocks, which
were prepared and exported to XML fragments. Based on information in a network
database, a custom tool may read the individual XML building blocks which for example
describe individual pages of the project and put them together into a complete project,
which may be loaded into the configuration software and downloaded to the device. Note
that it is also possible to save an entire project in XML format or export global parts of the
configuration, like the font set, the project settings, or the data point configuration. See
section 15.6 for details about this function.
8.5.5 Manage Data Points
This command is available in the context menu of menus, items, pages and folders. It will
open a new dialog, listing all data point objects below the selected object, which data points
they reference and which type and direction they have. This dialog is useful to organize
data point references, do batch renaming of data points or reassignment of data point
objects to different data sources, as is often required when copying parts of a project, for
example to add a page for a new room based on the page of an existing room, but
referencing data points of the new room.
Depending on the selected objects in the data point list (multi-select is possible), some of
the operations available using the buttons at the bottom of the window may be disabled.
8.5.5.1 Naming Rules
Many of the batch operations open a dialog to set the naming rules for the batch operation.
The dialog provides three different levels of naming rule specification, from very simple to
very complex and powerful. The three options are:
No Custom Naming Rule:
This is the most basic setting. It does not apply any
special rules on the source name or the target name. All selected sources will be
processed and the target name will be chosen to be as close to the source name as
possible. For example the duplicate operation, when run with this naming rule,
will create a data point Test1 from the original data point Test.
Search and Replace:
This setting is used to specify a simple search and replace
algorithm. All data sources which contain the search string (given in the first
input field) will be processed. The last occurrence of the search string in the
original name will be replaced by the replacement string (given in the second
input field) to form the new name. Most often used in conjunction with the
reassign operation, for example to automatically reassign all data points
referencing xxx_Room001 with xxx_Room002 (replace 001 with 002).
Regular Expression:
This is the most powerful setting. The regular expression
given in the first input field is matched against the original name. If the
expression matches, the entry is processed, otherwise ignored. If processed, the
matching groups (if present) are extracted and are used together with the name
template given in the second input field to build the new name. The new name
will be composed of the text in the name template, with all occurrences of
\0
replaced by the contents of the first matching group, all
\1
replaced by the
contents of the second matching group and so on. For example, the regular
expression
{(nvi)|(nvo)}{.*}_{[0-9]}
will match the original name
nviRoomTemp_2
and assign the substrings
nvi
to
\0
,
RoomTemp
to
\1
, and
2
to
\2
, so that the new name, when using a template of
\0\1-3
will become
nviRoomTemp-3
. Please refer to section 15.7.3 for a complete description of
the regular expression syntax.
Below the naming rule settings is a preview window, which shows a preview of the
resulting names and the number of matches in real time.