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.
If your Project Assist 2.0 template becomes damaged, you can download and import a new copy of the template.
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.
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.
label
.71° F
.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.
In the Project panel, expand the palette
directory, and open Equipment.dg5
.
The symbol appears on the page, and in the widgets palette under HVAC2, in the Equipment category.
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.
vFormatted
table column.After you have added a widget to the HVAC widgets in Project Assist 2.0, test your widget to make sure that it works.
Equipment.dg5
, use a different HVAC category in both HVAC2 and HVAC PA2, to insert your widget in a different category.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.
In the page where you created your symbol, in the Symbols panel, right-click simpleCallout and select Copy.
In the Project panel, open palette/widgets.dg5
.
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.