1201850-Advanced Graphics Application Help
1201850-Advanced Graphics Application Help
MS-ADVGRF-0
Menus......................................................................................................................................... 5
Toolbar....................................................................................................................................... 5
Preferences................................................................................................................................ 5
Precache Feature...................................................................................................................... 6
Action Codes.............................................................................................................................. 7
User Actions............................................................................................................................... 7
Dynamic Features..................................................................................................................... 7
Expression Builder............................................................................................................................... 9
Expression Syntax..................................................................................................................... 9
Logic Functions....................................................................................................................... 11
AGA Binder......................................................................................................................................... 13
Workflow............................................................................................................................................. 24
Viewing a Graphic.............................................................................................................................. 57
Troubleshooting........................................................................................................................... 58
Related Documentation............................................................................................................... 67
Software terms............................................................................................................................. 67
Product warranty.......................................................................................................................... 68
Patents........................................................................................................................................... 68
Index.............................................................................................................................................. 69
Summary of Changes
No technical changes were made to the document for this release.
The SVG file format is an XML-based web standard and is viewable and editable in any text editor,
much like HTML documents. The World Wide Web Consortium (www.w3.org) maintains the SVG
specification. The Advanced Graphics Application complies with the SVG specification for dynamic
SVG graphics. Besides the ability to save SVG files, the Advanced Graphics Application can also save
a Zipped Scalable Vector Graphic (SVGZ) file, which is a compressed SVG file.
Note: To keep the Advanced Graphics Add-On screen always open while defining user actions
and dynamic features, right-click a blank spot on the graphic away from the Add-On screen.
Then, if you are using Visio 2003, select View > Custom Properties Window. The Custom
Properties Window appears. If you are using Visio 2007 or 2010, select Data > Shape Data.
Dock the window. Now, the Add-On screen remains displayed while you work with the various
shapes on the graphic, and your changes are saved immediately.
The following table describes the options of the Advanced Graphics Application menus.
Table 2: Menu Options
Menu Option Description
Saves the current graphic file in SVG or SVGZ format to a location
Save (Ctrl+S)
on the hard disk or on the network to store the graphic.
File
Save As (F12) Saves the current graphic file under a new name.
Exit (Alt+F4) Closes the application.
Graphics
Launches the AGA Binder.
Binding (Ctrl+G)
Preferences
Tools Launches the AGA Preferences dialog box.
(Ctrl+E)
Precache (Ctrl
Launches the AGA Precache window.
+P)
Online Help
Launches the Advanced Graphics Application Help.
(Ctrl+F1)
Help
Displays information about the application, including copyright
About AGA
notice.
Toolbar
The following table describes the toolbar buttons of the Advanced Graphics Application.
Table 3: Toolbar Buttons
Button Description
Saves the current graphic file in SVG or SVGZ format to a location on
the hard disk or on the network to store the graphic.
Preferences
The Advanced Graphics Application launches dialog boxes to verify certain actions to guide you
through the program. For example, a dialog box appears asking whether you want to save your
changes when you exit the Advanced Graphics Application. Once you become familiar with the
application, you can turn off some of these messages from the Preferences menu. Figure 2 shows
and Table 4 describes the options of the Preferences dialog box.
Precache Feature
The Precache feature allows you to retrieve the values of objects used in your drawing before the
graphic is rendered, which improves graphic performance. These values are placed in Advanced
Graphics memory immediately when you open the graphic in the SMP UI. The drawing is then
rendered and the values of all objects appear. If you do not use the Precache feature, the object
values are retrieved after the graphic appears, which slows down graphic performance. Overuse
of the Precache feature may also slow down the system; therefore, we recommend that you specify
only the most important objects in the Precache window.
Action Codes
An Action Code is the coding information in a shape that specifies the animated presentation of
data. For example, you can create an animated spray for a duct humidifier using Action Codes.
Action Codes include User Actions and Dynamic Features.
User Actions
The Advanced Graphics Application triggers the defined dynamic feature in a shape to occur
when a user acts upon the shape. Table 5 describes the user actions configurable in the Advanced
Graphics Application.
Table 5: User Actions
User Action Description
A left mouse click on a shape.
Left Click
Example: ShowObjWindow(‘ADS1:NAE1/N2-1.AHU4.OA-T’);
A middle mouse click on a shape.
Middle Click
Example: setlv(‘show_legend’,true);
A right mouse click on a shape.
Right Click
Example: ShowCmdWindow(‘ADS1:NAE1/N2-1.AHU4.ZN-T’);
The mouse is clicked over a shape.
Mouse Down
Example: setlv(‘mouse_down_on_temp’,true);
The mouse moves around a shape.
Mouse Move Example: setlv(‘mouse_move_on_map_X’,evt.clientX);
setlv(‘mouse_move_on_map_Y’,evt.clientY);
The mouse moves over a shape.
Mouse Over
Example: setlv(‘mouse_over_room4’,true);
The mouse is released on a shape.
Mouse Up
Example: setlv(‘mouse_down_on_temp’,false);
The mouse moves off a shape.
Mouse Out
Example: setlv(‘mouse_over_room4’,false);
See the Creating and Editing an Advanced Graphic (Overview) section for the overall process of
creating an advanced graphic. Specifically, see the Adding Action Codes to a Shape and Configuring
Action Codes sections for details on how to add and configure action codes.
Dynamic Features
The dynamics included in the shape deliver the dynamic capabilities for the shape. The following
table describes the dynamics available in the Advanced Graphics Application.
See the Creating and Editing an Advanced Graphic (Overview) section for the overall process of
creating an advanced graphic. Specifically, see the Adding Action Codes to a Shape and Configuring
Action Codes sections for details on how to add and configure action codes. For background
Expression Builder
The Expression Builder allows you to build expressions to bind data to a shape using Graphic Object
References. The Expression Builder is shown in Figure 3 and described in Table 7.
Expression Syntax
The syntax for an expression depends on which action code or dynamic feature you have selected;
however, for the logic functions, there is a common syntax that applies:
Logic Function(‘Site Director:NxE Name/Point Reference.Attribute ID’,me);
Example for reading the present value of a zone temperature:
bsv(‘ADS1:NAE1/N2-1.ZN-T.85’,me);
The Logic Function is an abbreviation of the action that the statement is to perform. For example,
bsv means read a bound string value. Table 8 explains each of the valid logic functions.
The Site Director Name and NxE Name, along with the Point Reference, describe the location and
name of the point. A colon separates the Site Director and NAE/NCE names, which usually consist of
an ADS:NxE combination. The Point Reference is separated from the NxE by a forward slash.
The Attribute ID is a number that the Metasys system uses to identify a particular attribute. For
example, the attribute number for the Present Value of any object is 85. Other popular attribute
numbers are 512 (Status), 28 (Description), and 2390 (Name). The Expression Editor determines
the attribute ID when you select the object’s attribute. If no attribute ID or an invalid attribute ID is
specified, an error in the Java® console occurs when you display the graphic during runtime.
Product internationalization is the reason that attribute IDs are used instead of attribute names.
For a list of all attributes with their IDs, refer to the Metasys System Enumeration Sets Technical
Bulletin (LIT-12011361).
The me keyword at the end of the statement is a convention used by the Advanced Graphics
Application to enable the dynamic feature to sign up for any change in value of the monitored
attribute. For example, if the feature is Discrete Color, the me keyword allows for a change in color
to occur when the status of the linked attribute changes.
Operator Buttons
Logic Functions
Logic functions aid in programming the dynamic features of a shape. Logic functions trigger
dynamics in the shape based upon the attached system data. Insert logic functions using the
Expression Builder. The following table describes the logic functions available in the Advanced
Graphics Application.
Table 8: Logic Functions
Variable Script Description
Reads an Object Reference in the NAE/NCE/
NIE or Application and Data Server (ADS)/
Extended Application and Data Server (ADX),
and returns a floating value.
Example:
bfv('ADS1:NAE1/N2-1.AHU4.RM-T.85, me)
Reads an Object Reference in the NAE/NCE/
NIE or ADS/ADX, and returns a Boolean
value.
Example:
bbv('ADS1:NAE1/N2-1.AHU4.SF-S.85, me)
Example:
biv('ADS1:NAE1/N2-1.AHU4.AV1.85, me)
Reads an Object Reference in the NAE/NCE/
NIE or ADS/ADX, and returns a string value.
Example:
bsv('ADS1:NAE1/N2-1.AHU4.FILTER.28, me)
Reads a local variable, and returns a floating
Read a local floating point value lfv
value.
Read a local boolean point Reads a local variable, and returns a Boolean
lbv
value value.
Reads a local variable, and returns an integer
Read a local integer point value liv
value.
Reads a local variable, and returns a string
Read a local string point value lsv
value.
Allows you to assign a color from a color
selection window. The Expression Builder
can also use an RGB (red/green/blue)
number given in hexadecimal format to
Select Color —
identify the color. This format contains #
and three sets of numbers representing the
color intensity of red, green, and blue (for
example, red would be #340000).
Sets a local value setlv Modifies the value of a local variable.
See the Creating and Editing an Advanced Graphic (Overview) section for the overall process of
creating an advanced graphic. Specifically, see the Using the Expression Builder section for details
on how to build expressions.
AGA Binder
The AGA Binder assists you in building expressions by logging in to and selecting field points and
references from the SCT. Figure 4 shows the AGA Binder with the References tab active, and Table 9
describes the AGA Binder menus and tabs. The fully qualified object reference of the selected item/
object is copied to the Microsoft Windows clipboard so you can paste it into the expression.
See the Creating and Editing an Advanced Graphic (Overview) section for the overall process of
creating an advanced graphic. Specifically, see the Using the AGA Binder section for details on how
to bind data to shapes.
The Graphics Example stencil contains prebuilt dynamic shapes for creating dynamic system
graphics. Use the Professional or Standard edition of Microsoft Visio 2003, 2007 or 2010 software
and the Advanced Graphics Generation Add-On to modify the shapes to suit the needs of the
facility. Table 10 lists the sample shapes and their prebuilt action codes. For more information on
the action codes, see Table 5 and Table 6.
1
• Sound—plays a sound when in high/low alarm
The Advanced Graphics Application provides two methods for creating advanced graphics and
binding data to shapes. The first method is to use the Graphics Example shapes as defined and
modify the object references in the shape’s custom properties (Visio 2003) or shape data (Visio 2007
and 2010). The second method is to create your own custom shapes or use the Graphics Example
shapes and modify the action codes to create customized dynamic shapes.
The shapes in the Graphics Example stencil have custom properties or shape data entries on their
right-click menus. The object reference of all the shape’s action codes can be set using the custom
properties (Figure 5) or shape data (Figure 6 and Figure 7). See the Configuring Graphics Example
Shapes section for details on how to edit the custom properties or shape data.
If you choose to modify the action codes of a shape from the Graphics Example stencil, the custom
properties or shape data of that shape do not function after editing the action codes using the
Advanced Graphics Application. If you want to change any part of an existing Graphics Example
shape (for example, you want to keep all of the dynamics configured, but you want to change or
add a dynamic), you cannot modify the custom properties or shape data to indicate the object
reference for that shape. You must use the Advanced Graphics Application to add the object
reference to each of the defined action codes and make the desired action code changes or
additions. The Configuring Action Codes for a Return Fan Shape Example section describes how to
configure an existing Graphics Example shape to use a different action code and how to add the
object references to the defined action codes.
For information on creating new shapes and adding them to new stencils, refer to the Professional
or Standard edition of Microsoft Visio 2003, 2007, or 2010 software documentation. Then, add the
new shape to your advanced graphic and use the action codes to create the desired dynamics. For
details on configuring action codes, see the Adding Action Codes to a Shape section.
Aliased graphics employ a technique of string substitution in object references to allow a single
graphic to be used with multiple mechanical systems. For example, create a single graphic to use
for all Variable Air Volume (VAV) controllers, then create an alias to use for the other graphics. For
an example on how to create an aliased graphic, see the Creating an Aliased Graphic section.
The Metasys system includes a User Graphics Tool (UGT) that accepts standard graphics. The
graphics provide a visual representation of the monitored systems and enable you to quickly check
the status of systems and recognize unusual conditions. You can design graphics to allow you
to navigate through buildings, floors, and other areas, viewing the building systems and control
processes.
The SMP UI displays advanced graphics with real-time controller field point data, and allows
building operators to command and update points. Advanced graphics allow you to use a wider
range of dynamics in your system graphics. After selecting an advanced graphic in the Metasys
system navigation tree, the advanced graphic appears in the SMP UI.
In the SMP UI, advanced graphics do not offer the functionality and buttons present in the UGT. If
you click the Edit button, a toolbar appears that allows you to replace the current graphic with a
new advanced graphic using Set Advanced Graphic or clear the current advanced graphic using
the Clear button.
Figure 8 shows an advanced graphic viewed in the SMP UI. See Viewing a Graphic.
Workflow
Figure 9 shows the workflow for creating and viewing advanced graphics.
Use this procedure to create graphics using existing shapes in the Graphics Example stencil with
the Advanced Graphics Application and Visio Professional 2003, 2007, or 2010 software. Both of
these procedures require you to work with the Visio software source file, and then place the new
graphic in the Metasys system or replace the existing graphic with a new graphic. See the Workflow
section.
Note: If desired, create and save any new shapes and stencils for use in your graphic as
instructed in the Professional or Standard edition of Microsoft Visio 2003, 2007, or 2010
software product documentation.
1. In the Professional or Standard edition of Microsoft Visio 2003, 2007, or 2010 software, open
an existing graphic or create a new graphic (Visio drawing in VSD format). Use the shapes in
the Graphics Example stencil and other stencil libraries to create the graphic in the drawing
workspace.
Note: To access the Graphics Example stencil, select File > Shapes > Graphics Example.
2. Configure the shapes for the preferred dynamic features and bind the graphic with field point
data.
- To bind data to existing shapes in the Graphics Example stencil, see the Configuring
Graphics Example Shapes section.
- To use the Precache feature, see Working with the Precache Definition.
- To configure and bind data to shapes using action codes, see the Adding Action Codes to
a Shape section.
Note: If you want to create an aliased graphic (for example, one graphic used for all
VAVs), see the Creating an Aliased Graphic section.
4. If you are creating a new graphic, insert a graphic object into the SMP UI and import the
advanced graphic. See the Inserting an Advanced Graphic to the UGT section.
5. If you are replacing an existing advanced graphic with a new advanced graphic, display the
advanced graphic you are replacing and go to Step 10 in Inserting an Advanced Graphic to
the UGT.
1. If you are using Visio 2003, right-click the shape and then click Shape > Custom Properties.
The Custom Properties dialog box appears. See Figure 5. If you are using Visio 2007 or 2010,
right-click the shape and then click Data > Shape Data. The Shape Data dialog box appears. See
Figure 7.
3. Paste the fully qualified object reference in the ObjectReference field of the Custom Properties
or Shape Data dialog box.
4. Click OK.
5. From the Visio software File menu, select Save Advanced Graphics to save the changes to the
graphic in the SVG or SVGZ file.
Note: Alternatively, you can click Save in the Advanced Graphics Application or select Save
from the Advanced Graphics Application File menu.
The first time you save the graphic, the Save As dialog box appears. Select a location on the
hard disk or on the network to store the graphic. Type a name for the graphic in the File name
box. Then select SVG or SVGZ format and click Save.
6. On the Visio software File menu, click Save to save the changes to the Visio drawing in VSD
format. The VSD file is the file format used by the Professional or Standard edition of Microsoft
Visio 2003, 2007, or 2010 software. The VSD drawing is the file to open when you want to edit
a graphic using the Professional or Standard edition of Microsoft Visio 2003, 2007, or 2010
software and the Advanced Graphics Application.
Note: Make sure you click an empty space on the drawing workspace before saving. If one of
the shapes in the graphic is selected, the application only saves changes to that shape.
2. Add the objects you want to precache while using the Advanced Graphics Application.
Note:
To delete all items in the Precache definition, click Delete Precache. If you click Delete Pre-
cache and apply the changes, there is no undo. The Precache is emptied.
If you would like to delete one item from the list, manually remove the item from the list by
selecting it and pressing the Delete key.
1. In the Professional or Standard edition of Microsoft Visio 2003, 2007, or 2010 software, select a
shape.
2. On the Tools menu, click Add-Ons > AGAActionCodeAddOn. The Advanced Graphics Application
main screen, ActionCode AddOn Form, appears. See Figure 1.
3. Click to select the check boxes for the preferred User Actions and Dynamic Features for the
shape. The selected User Actions and Dynamic Features appear in the Action Codes drop-down
menu. See Table 5 and Table 6 for information on each User Action and Dynamic Feature.
5. Click Apply Changes after configuring all Action Codes for the shape.
6. On the Visio software File menu, click Save Advanced Graphics to save the changes to the
graphic in the SVG or SVGZ file.
Note: Alternatively, you can click the Save button in the Advanced Graphics Application or
select Save from the Advanced Graphics Application's File menu.
The first time you save the graphic, the Save As dialog box appears. Select a location on the
hard disk or on the network to store the graphic. Type a name for the graphic in the File name
box. Then select SVG or SVGZ format and click Save.
7. On the Advanced Graphics File menu, click Exit to close the Advanced Graphics Application.
8. Perform Step 1 through Step 7 for each shape in the graphic that you want to animate.
Note: You can configure individual action codes on parts of the graphic and then group them
together in Visio software and configure action codes for the grouped section as well.
9. On the Visio software File menu, click Save to save the changes to the Visio drawing in VSD
format. The VSD file is the file format used by the Professional or Standard edition of Microsoft
Visio 2003, 2007, or 2010 software. The VSD drawing is the file to open when you want to edit
a graphic using the Professional or Standard edition of Microsoft Visio 2003, 2007, or 2010
software and the Advanced Graphics Application.
Note: Make sure you click an empty space on the drawing workspace before saving. If one of
the shapes in the graphic is selected, the application only saves changes to that shape.
10. Go to Step 3 in the Creating and Editing an Advanced Graphic (Overview) section.
Action Codes are the coding information in a shape that specify the animated presentation of data.
Use combinations of Action Codes to create an animation for your shapes. See the Action Codes
section and User Actions for descriptions of the Action Codes, and see the following sections for
help on how to configure the Action Codes.
Animate Hide
2. Select the amount of time in seconds you want the animation to occur on the Duration menu.
3. Type the desired logic function expression in the Begin Animation Expression text box or click
Expression to use the Expression Builder. For more information, see Table 8 and the Using the
Expression Builder section.
Animate Scale
2. Select the maximum and minimum levels of scaling (range = 0-1,000) for the shape’s x-axis and
y-axis in the Maximum ScaleX, Minimum ScaleX, Maximum ScaleY, and Minimum ScaleY
menus.
3. Click the amount of time in seconds that you want the animation to occur on the Duration
menu. The duration time is spanned equally between the specified minimum and maximum
scaling limits.
4. Type a logic function expression in the Begin Animation Expression text box or click
Expression to use the Expression Builder. For more information, see Table 8 and the Using the
Expression Builder section.
Custom Actions
2. Type JavaScript code in the User Logic text box or click Expression to use the Expression
Builder. For more information, see the Using the Expression Builder section.
Note: AGA does not check syntax, so be sure that the JavaScript code you enter is correct. If
it contains errors, an exception occurs and appears in the Java console when the graphic is
executed at runtime. For background information on JavaScript, consult a reference book, such
as JavaScript: The Definitive Guide, Fifth Edition by David Flanagan.
Discrete Color
2. Click in the Insert Color box. The Color selection dialog box appears.
3. Select a color and click OK. The color appears in the Insert Color box.
4. Type a numeric value for the Insert Color option in the Numeric Value text box.
5. Click Add to assign the data to the color. The Number/Color table displays the option.
Note: Click Update to make changes or click Remove to delete a Number/Color pair.
6. Follow Step 2 through Step 5 to assign numeric values to each additional color you want to
display. The following steps apply to the shape as a whole.
Note: Click stroke for the outline color of the shape, or click fill for the fill color of the shape.
8. Type a numeric expression in the Color Selection Expression text box or click Expression to
use the Expression Builder. For more information, see the Using the Expression Builder section.
Flash
2. Click in the Color A box. The Color selection dialog box appears.
3. Select a color and click OK. The color appears in the Color A box.
4. Click in the Color B box. The Color selection dialog box appears.
5. Select a color and click OK. The color appears in the Color B box.
Note: Select stroke for the outline color of the shape, or select fill for the fill color of the
shape.
7. Select the amount of time in seconds that you want the animation to occur in the Duration
box. Duration is the time between each color change while flashing is occurring.
8. Type an expression in the Begin Flash Expression text box or click Expression to use the
Expression Builder. For more information, see the Using the Expression Builder section.
The flashing begins when the expression evaluates to True and stops when the expression
becomes False.
Hide
2. Type an expression in the Hiding Expression text box or click Expression to use the
Expression Builder. For more information, see the Using the Expression Builder section.
Hyper Link
2. Type the target in the Target Window text box. For example, typing the word new in the
Target Window text box opens the link in a new window.
3. Type the URL in the URL text box, including the http:// prefix. The new window opens and
displays the specified website when the shape is clicked during runtime.
2. Type the path for the JavaScript file in the JavaScript File text box or click Browse to navigate
to and select the file.
Left Click
2. Type a logic function script in the On Click User Logic text box or click Expression to use the
Expression Builder. For more information, see Table 8 and the Using the Expression Builder
section.
Middle Click
2. Type a logic function script in the On Click User Logic text box or click Expression to use the
Expression Builder. For more information, see Table 8 and the Using the Expression Builder
section.
Mouse Down
Mouse Move
2. Type a logic function expression in the On Mouse Move User Logic text box or click
Expression to use the Expression Builder. For more information, see Table 8 and the Using the
Expression Builder section.
Mouse Out
Mouse Over
2. Type a logic function expression in the On Mouse Over User Logic text box or click Expression
to use the Expression Builder. For more information, see Table 8 and the Using the Expression
Builder section.
Mouse Up
Move
2. Type a numeric expression in the Move Percentage Expression text box or click Expression to
use the Expression Builder. For more information, see the Using the Expression Builder section.
3. In the Visio drawing, move the shape’s control handle (the small yellow diamond) to the
location to which you want the shape to move when the value of the object is 100. When the
value of the object is 0, it moves to its pasted-down position. When the value of the object is
between 0 and 100, the shape moves in a straight line proportional to the 0 and 100 positions.
For example, a value of 50 moves the shape halfway between position 0 and position 100.
Navigate
Note: Alternatively, use the AGA Binder to obtain a valid Graphic Object Reference and paste
it into this field. See the Using the AGA Binder section for information on how to use the AGA
Binder.
3. Type a name for the window of the referenced graphic in the Window Title text box.
Note: If this name is already assigned to an existing window, the existing window is replaced
by the new window. If the word new is entered in the Window Title text box, a new window
specified by the graphic reference appears while the existing window remains open. If no
name is entered, the window containing the Navigate action is replaced.
6. Click Add to assign the value to the variable. The Local Variable/Local Value table displays the
option.
Note: Click Update to make changes or click Remove to delete a Local Variable/Local Value
pair.
Right Click
2. Type a logic function script in the On Click User Logic text box or click Expression to use the
Expression Builder. For more information, see Table 8 and the Using the Expression Builder
section.
Rotate
2. Type a numeric expression in the Rotation Angle Expression text box or click Expression to
use the Expression Builder. For more information, see the Using the Expression Builder section.
Scale
2. Select a value for Scale X and Scale Y indicating the levels of scaling for the x-axis and y-axis.
The scale number is a percentage, in which 0 is a reduction of 100% of original size along the x-
or y-axis, 1 is no increase in size, 2 is an increase of 100% of original size (double), 3 is a 200%
increase (triple), and so forth.
Note: Click Preview and look at the drawing in Visio software to see how the scaling appears
for the selection. For example, if you select 2 for the scale for the x-axis and y-axis, the shape
appears double its original size in the drawing. The Preview button changes to Restore after
you click it. Click Restore to return the shape to its original size. The Preview operation has no
effect on the saved drawing.
3. Type a numeric expression in the Percent Scale Expression text box or click Expression to use
the Expression Builder. For more information, see the Using the Expression Builder section
Set Fill
2. Type an expression in the User Logic text box. The name of the color or hex equivalent must
be surrounded by single quotes (Figure 31). Alternatively, you can click Expression to use
the Select Color option in the Expression Builder. For more information, see the Using the
Expression Builder section.
Sound
2. Type the path of the sound file in the File Name text box or click Browse to navigate to and
select the file.
3. Select the number of times the sound file should repeat from the Repeat Count menu or click
in the box to select Indefinite to repeat the sound continuously.
Span Color
2. Click in the Low Color box. The Color selection dialog box appears.
3. Select a color for the lower limit and click OK. The color appears in the Low Color box.
Note: The Low Color Limit value is 0, and colors with values lower than 0 automatically take on
the value 0.
4. Click in the High Color box. The Color selection dialog box appears.
5. Select a color for the higher limit and click OK. The color appears in the High Color box.
Note: The High Color Limit value is 100, and colors with values greater than 100 automatically
take on the value 100.
Note: Click stroke for the outline color of the shape, or click fill for the fill color of the shape.
Note: Click Preview to display the Color Preview dialog box (Figure 34). With this dialog box
opened, use the slider bar to show how the color gradient changes between the Low Color and
High Color selections. For example, if you selected red for the Low Color and blue for the High
Color, the color appears purple halfway between red and blue (50 on the preview bar). Click
Ok to exit the preview.
7. Type an expression in the Color Expression text box or click Expression to use the Expression
Builder. For more information, see the Using the Expression Builder section.
Spin
3. Type an expression or integer in the Spin Duration Expression text box or click Expression to
use the Expression Builder. A value of 1 defines a spin rate of approximately one revolution per
second; 2 is one revolution every 2 seconds, 3 is one revolution every 3 seconds, and so forth.
For more information on expressions, see the Using the Expression Builder section.
4. Type an expression in the Spin Enable Expression text box or click Expression to use the
Expression Builder. For more information, see the Using the Expression Builder section.
Text
2. Type an expression in the Text Expression text box or click Expression to use the Expression
Builder. For more information, see Table 8 and the Using the Expression Builder section.
2. Click in the Low Color box. The Color selection dialog box appears.
3. Select a color for the lower limit and click OK. The color appears in the Low Color box.
Note: The Low Color Limit value is 0, and colors with values lower than 0 automatically take on
the value 0.
4. Click in the Medium Color box. The Color selection dialog box appears.
5. Select a color for the medium value and click OK. The color appears in the Medium Color box.
6. Click in the High Color box. The Color selection dialog box appears.
7. Select a color for the higher limit and click OK. The color appears in the High Color box.
Note: The High Color Limit value is 100, and colors with values greater than 100 automatically
take on the value 100.
Note: Click stroke for the outline color of the shape, or click fill for the fill color of the shape.
Note: Click Preview to display the Color Preview dialog box (Figure 39). With this dialog box
opened, use the slider bar to show how the color gradient changes between the Low, Medium,
and High Color selections. For example, if you selected red for the Low Color and green for the
Medium Color, the color appears brown halfway between red and green (25 on the preview
bar). Click Ok to exit the preview.
9. Type an expression in the Color Expression text box or click Expression to use the Expression
Builder. For more information, see the Using the Expression Builder section.
Tooltip
2. Type an expression in the Tooltip Text text box or click Expression to use the Expression
Builder. For more information, see the Using the Expression Builder section.
1. In the Action Code configuration section of the screen, click Expression. (For example, see the
Expression button in Tooltip.) The Expression Builder appears. See Figure 3 and Table 7.
3. Type the Object Reference or Local Variable in the Object Reference/Local Variable text box.
Note: Alternatively, you can click the Lookup button (ellipses) to launch the AGA Binder and
build an expression. See the Using the AGA Binder section.
4. Click Build. The Expression Builder builds the expression and displays it in the Generated
Expression text box.
Note: The Add Operator menu provides a list of commonly used logical operations to use in
building logical expressions. To add on to the expression, select an operator from the Add
Operator menu and repeat Steps 2 through 4.
Note: The NOT (!) and TERNARY (?) operators are also available for use by editing the
generated expression.
5. Click OK.
Important: The NAE/NCE/NIE or ADS/ADX database must be uploaded to the SCT before you
can use the AGA Binder to access points.
1. Click the graphics binding icon in the toolbar or select Graphics Binding from the Tools menu.
The AGA Binder appears (see Figure 4).
Note: You can also launch the AGA Binder from the Expression Builder screen by clicking
the Lookup button next to the Object Reference/Local Variable text box. Figure 3 points
out the Lookup button.
2. From the Actions menu, select Login. The SCT Login screen appears (Figure 41).
6. Click OK. If the host name, user name, and password you entered are correct, the AGA Binder
logs in to the SCT, and data becomes available in the SCT Archives and References tabs of
the AGA Binder. If the host name, user name, or password you entered is incorrect, an error
message displays. Click OK and try logging in again.
7. Double-click an archive database. The Reference tab becomes active displaying data from the
selected archive.
8. Navigate to and select an item or point to reference. Figure 4 shows the AGA Binder with the
References tab active and NAE-SIX selected with a single-click.
9. Single-clicking an item in the Reference tab’s Navigation Tree copies the item’s reference
data into the Windows clipboard. Double-clicking an item launches the Attribute dialog
box allowing you to select an attribute level reference. (If this Attribute dialog box does
not appear, see Troubleshooting.) Select the attribute from the drop-down list and click Ok
to copy the reference.
Note: When you copy the attribute level reference, the attribute portion of the reference
changes to the number assigned to it in the Attributes Set. For example, the Present Value
attribute is designated as 85. To look up other attributes, refer to the Metasys System
Enumeration Sets Technical Bulletin (LIT-12011361).
Select an attribute level reference when editing shapes using action codes. When editing a
shape using the Custom Properties dialog box (Visio 2003) or Shape Data (Visio 2007 and
Visio 2010), do not select an attribute to reference.
10. Return to the Expression Builder or return to the main screen of the Advanced Graphics
Application and display an Action Code in the top panel of the screen.
11. Right-click in the text box to add the reference and select Paste. The reference appears in the
selected location.
12. For the Expression Builder, click Build to display the expression in the Generated Expression
text box and click Ok.
1. Create a general VAV graphic and bind data to a specific VAV controller normally.
a. Highlight the portion of the object reference that represents the controller object (for
example, highlight VAV-1 in ‘ADS:NAE/N2-1.VAV-1.ZN-T.85’).
where VAV is the name of the Local Variable to be defined in a Navigate action code
that contains the substitute VAV controller name.
3. Create another graphic with a floor plan containing shapes configured to navigate to the VAV
graphic.
For each navigation shape, use the Navigate action code to add a Local Variable named VAV with a
Local Value that contains the name of the VAV controller at the navigation shape’s location.
1. In the Professional or Standard edition of Microsoft Visio 2003, 2007, or 2010 software, open or
create your graphic (Visio drawing in VSD format).
2. Add the Return Fan shape from the Graphics Example to a location in your graphic (Figure 44).
3. Click just the red portion of the Return Fan shape and launch the Advanced Graphics Add-On
Application. Notice that Span Color is selected in the Dynamic Features section.
6. From the Action Codes menu, click Discrete Color. The Discrete Color action code
configuration appears.
7. Follow the instructions in the Discrete Color section to add a red fill color (0) and a green fill
color (1). The red indicates the fan is off and the green indicates the fan is on.
8. Click the Expression button. The Expression Builder appears. See the Using the Expression
Builder section for details.
9. In the Read/Write bound values or Local variables menu, click Read a bound integer attribute
value.
11. Follow the instructions in the Using the AGA Binder section to log in to the SCT and select the
reference to the Present Value attribute of the RA Fan (Figure 45).
12. Return to the Expression Builder screen and paste the reference in the Object Reference/Local
Variable text box (Figure 46).
13. Click Build. The expression appears in the Generated Expression text box (Figure 47).
15. On the Advanced Graphics Add-On screen, notice the expression is inserted in the Color
Selection Expression text box (Figure 48).
17. In the Visio software File menu, click Save Advanced Graphics to save the changes to the
graphic in the SVG or SVGZ file.
18. Click the text box below the Return Fan label and launch the Advanced Graphics Add-On
Application. Notice that Text is selected in the Dynamic Features section.
19. In the Action Codes menu, select Text. The Text action code configuration appears with
an expression already defined. You need to replace the 0 in the expression with an object
reference (Figure 49).
21. Follow the instructions in the Using the Expression Builder section to log in to the SCT and click
the reference to the RA Fan.
22. Return to the Advanced Graphics Add-On screen, highlight the 0 in the existing expression, and
paste the new reference in its place (Figure 50).
24. In the Visio software File menu, select Save Advanced Graphics to save the changes to the
graphic in the SVG or SVGZ file.
25. Repeat Steps 18 through 24 to add valid references to the remaining action codes. Cmd Name
and Cmd Desc reference the command output object for the fan. Sts Name and Sts Desc
reference the status input object for the fan. This example uses the following expressions for
the remaining action codes:
26. From the Visio software File menu, select Save to save the changes to the Visio drawing in VSD
format.
28. Insert a graphic object into the SMP UI or SCT UI and import the advanced graphic. See the
Inserting an Advanced Graphic to the UGT section.
29. View the graphic (Figure 51). Left-click the fan to display the RA Fan focus window. Right-click
the fan to open the RA Fan command window. See the Viewing a Graphic section.
3. In the Insert menu, select Graphic. The Insert Graphic Wizard appears with the Destination
screen open.
4. If you clicked the location for your graphic in Step 2, that location appears as the default
destination. If not, or if you have decided to place the graphic in a different location, select the
destination for your new graphic and click Next. The Insert Graphic Wizard Identifier screen
appears.
5. Give the graphic a unique name and click Next. The Insert Graphic Wizard Configure screen
appears.
6. Make sure the information on the Configure screen is correct and click Next. The Insert
Graphic Wizard Summary screen appears.
Note: The Description and Object Category attributes are optional, but can be used to help
you remember the purposes for the different graphics.
7. Make sure the information on the Summary screen is correct and click Finish.
8. In the Action menu in the SMP UI, click Refresh on all tabs to make sure that you can see your
new graphic object in the navigation tree.
11. Click the Set Advanced Image button. The Open dialog box appears.
12. Browse to and select the SVG or SVGZ file you want to attach to this Graphic object.
14. Click Save to insert the Graphic object into the database.
Viewing a Graphic
You view an advanced graphic in the SMP UI, not the Advanced Graphics Application.
1. Double-click the advanced graphic in the SMP UI (ADS/ADX/NAE/NCE). The advanced graphic
opens in the user interface framework (see Figure 8). The advanced graphic retrieves object
reference values from the associated devices, for example, the NAE/NCE or the ADS.
2. Monitor and command the system according to the graphic’s configuration. For example, if a
shape is configured to launch the Command window (using ShowCmdWindow), you can send a
command to the referenced device. To zoom, use Table 11.
Table 11: Zooming in an Advanced Graphic
Key Stroke/Mouse Action Zoom Function
Ctrl + shift + right-click Return to initial view.
Troubleshooting
The following table lists possible problems and the warning messages that appear in the Advanced
Graphics Application and describes their solutions.
Table 12: Troubleshooting and Warning Messages
Problem, Error, or Pop-Up Message Solution
Occurs when there is an error in the action
codes defined for that shape. Double-click the
Java console icon. Look for the AGAException
(shape ID) message. If this message appears,
there is an error in the action codes for that
A shape dynamic does not work in the Adobe shape.
SVG Viewer (runtime mode).
In the Professional or Standard edition of
Microsoft Visio 2003, 2007, or 2010 software,
select that shape. Launch the Advanced
Graphics Application. Check the action codes for
syntax errors and modify as needed.
To improve performance, split up complex
graphics into multiple graphics or redesign
Advanced graphics display slowly.
graphics to reduce complexity and remove
unnecessary components.
Release 3.0 or later does not support SMIL
Release 3.0 or later Advanced Graphics animation. Release 3.0 or later Advanced
Application does not show Synchronized Graphics Application supports only those SMIL
Multimedia Integration Language (SMIL) functions that the Action Code Editor generates.
animation in my graphic. If you add SMIL to your graphics, you may lose
functionality in your advanced graphic.
Release 3.0 or later Advanced Graphics
You cannot create ActiveX controls with Application does not provide access to the entire
the Release 3.0 or later Advanced Graphics suite of Windows Internet Explorer Application
Application. Programming Interfaces (APIs), including those
that allow you to create ActiveX controls.
Appears while saving the SVG file and the
[Action code name] is configured
specified action code is configured improperly.
improperly. Do you want to delete the
Click Yes to delete the action code or click No
action codes? Click Yes to delete,
to remove the shape selection. Reconfigure the
Click No to deselect the shape
action code and save the file as an SVG.
6. Click OK.
6. Click OK.
9. Click OK.
Related Documentation
Table 13: Related Information
For Information On See Document
Installing the Advanced Graphics Advanced Graphics Application Installation Guide
Application software (LIT-12011525)
User Graphics Tool (UGT) section of the Metasys® Site
How to use the User Graphics Tool
Management Portal Help (LIT-1201793)
How to license the Advanced
Software Manager Help (LIT-12012389)
Graphics Application software
Metasys system Metasys® System Configuration Guide (LIT-12011832)
Metasys system terms and acronyms Metasys System Extended Architecture Glossary (LIT-1201612)
Software terms
Use of the software that is in (or constitutes) this product, or access to the cloud, or
hosted services applicable to this product, if any, is subject to applicable terms set forth at
www.johnsoncontrols.com/techterms. Your use of this product constitutes an agreement to such
terms.
Patents
Patents: http://jcipat.com
© 2019 Johnson Controls. All rights reserved. All specifications and other information shown were current as of document
revision and are subject to change without notice.
Index
Spin ........................................................ 45
Adding ................................................... 28
SVG Tag Attribute ................................. 45
Animate Hide ........................................ 29
Text ........................................................ 46
Animate Scale ....................................... 30
Three State Span Color ........................ 46
Configuring ........................................... 29
Tooltip ................................................... 48
Custom Actions .................................... 31
Hide ....................................................... 33
Advanced Graphics Toolbar .......................... 5
Hyper Link ............................................. 34
Navigate ................................................ 39
bbv ................................................................. 11
Right Click ............................................. 40
Scale ....................................................... 42
Index
Binder ............................................................ 13
Discrete Color .......................................... 7, 31
Flash ......................................................... 7
Bound Integer Attribute Value ................... 11
Hide .......................................................... 7
Navigate .................................................. 7
Building Expressions ................................... 48
Rotate ...................................................... 7
C
Scale ......................................................... 7
Spin .......................................................... 7
Create
SVG Tag Attribute ................................... 7
Aliased Graphic .................................... 51
Text .......................................................... 7
Graphic .................................................. 26
Three State Span Color .......................... 7
Tooltip ...................................................... 7
Custom Actions ....................................... 7, 31
D E
Edit
Differential Pressure .................................... 14
Index
H
Expression Builder ......................................... 9
Expressions ................................................... 48
Importing ...................................................... 56
Example ................................................... 9
F Include ..................................................... 7, 35
L
Flash ......................................................... 7, 32
G lbv .................................................................. 11
Editing ................................................... 26
liv .................................................................... 11
Importing .............................................. 56
Viewing .................................................. 57
Local Boolean Point Value ........................... 11
Index
P
Local String Point Value .............................. 11
Preferences ................................................................ 5
Logic .............................................................. 11
Pump ............................................................. 14
lsv ................................................................... 11
R
M
Rotate ....................................................... 7, 41
Mouse Out .................................................... 37
RS9100 ........................................................... 14
Mouse Over .................................................. 38
S
Mouse Up ...................................................... 38
Move ......................................................... 7, 39
Scale ......................................................... 7, 42
N
Scripts ............................................................ 11
Navigate ................................................... 7, 39
Index
T
Set Fill ....................................................... 7, 42
T-4000 ............................................................ 14
setlv ................................................................ 11
Text ........................................................... 7, 46
Sound ....................................................... 7, 43
TMZ ................................................................ 14
Toolbar ............................................................ 5
Three State ............................................ 46
Tooltip ...................................................... 7, 48
Spin ........................................................... 7, 45
troubleshooting ...................................................... 58
Stat ................................................................. 14
U
Stencil ............................................................ 14
UGT ......................................................... 24, 56
User Actions
Index
Mouse Up ................................................ 7
Variables ........................................................ 11
Viewing ..................................................................... 24
Viewing .......................................................... 57
Wizard ............................................................ 56
Zoom .............................................................. 57