Include Your Own Widget in Project Assist
By editing the widget libraries used by Project Assist 2.0, you can make your own widgets available in Project Assist. This technique is intended for Project Assist users who are also familiar with DGLux5. Adding your own widgets requires you to use symbols, dataflow, and project directories in DGLux5.
Important
If your Project Assist 2.0 template becomes damaged, you can download and import a new copy of the template.
Include a Simple Callout Widget in the HVAC Widgets
These steps show you how to create a simple callout widget and include it in the Project Assist HVAC widgets. You can do these steps as a tutorial before attempting to add more complicated widgets.
Create the Symbol in DGLux5
First, you will create a simple symbol to use as a widget.
In these steps, you will create a symbol with parameters, and you will bind one of the parameters to a property.
Right click the Stage in the Document window or Outline, and select Insert > Components > Text.
In the Property Inspector, style the appearance of the text component using the fill and stroke and text and font properties.
In the Symbols panel, right-click simpleCallout, and select Edit.
- In the Outline, right-click simpleCallout, and select Edit Properties.
- Double-click the textarea parameter, and rename it
label
. - For the value of the label parameter, add some placeholder text, such as
71° F
. - Save the page.
Include the Widget in the HVAC2 Library
In order to include your widget with the Project Assist 2.0 HVAC widgets, it must be added to two libraries. The first of these is the HVAC2 library.
In these steps, you will add a widget to a widget library.
In the page where you created your symbol, in the Symbols panel, right-click simpleCallout and select Copy.
- Select Project > Open Project, and open the project named HVAC2.
In the Project panel, expand the
palette
directory, and openEquipment.dg5
.- Save the page.
The symbol appears on the page, and in the widgets palette under HVAC2, in the Equipment category.
Include the Widget in the HVAC PA2 Library
After you have included a widget in the HVAC2 library, you must also include it in the HVAC PA2 library in order for it to appear in Project Assist.
In these steps, you will copy and paste a Dataflow block and bind from a table cell to a property.
- Select Project > Open Project, and open the project named HVAC PA2.
- Scroll right until you see the
vFormatted
table column. - Save the file and close.
Test Your Widget
After you have added a widget to the HVAC widgets in Project Assist 2.0, test your widget to make sure that it works.
- Open your Project Assist project, and open the home page of Project Assist in the Viewer.
- Make sure you have some device node created.
- Click the gray or white button to start editing the template for a device.
- At the bottom of the screen, expand Equipment, and drag your widget to the device template.
Tip
- Instead of
Equipment.dg5
, use a different HVAC category in both HVAC2 and HVAC PA2, to insert your widget in a different category.
Include a Simple Widget in the Project Assist Widgets library
Instead of including your simple widget in the Project Assist HVAC widgets, you can include your widget with the other Project Assist widgets such as callouts, lists, and charts. This has the benefit of making your widget available for location pages and reports as well as device templates.
- Create a symbol as described above.
In the page where you created your symbol, in the Symbols panel, right-click simpleCallout and select Copy.
- Select Project > Open Project, and open your Project Assist project.
In the Project panel, open
palette/widgets.dg5
.- In the
widgets.dg5
file that you just opened, follow steps 4–8 from Include the Widget in the HVAC PA2 Library. Test your widget as described above, in both a device template and a location page.