The symbol component is a container that takes a path to a DGLux5 symbol that you have created or imported. Edits that you make in one place affect all instances of the symbol.
There are several ways to create a symbol and to enter the special symbol editing mode that lets you edit a symbol.
You can save symbols to the widget palette, or import symbols to the lib folder, to use them in different pages, projects, and user accounts. Unlike other widgets in the widget palette, editing a symbol that you drag from the widget palette affects the source symbol and all other instances, regardless of project. This is true only if you have can edit
access to the symbol's source file.
Symbols are required when you create repeaters and callouts.
Four instances of a symbol component in DGLux5
If the symbol and the symbol component are located in the same DGLux5 page, the path is the name of the symbol.
If the symbol is located in the project's palette
folder, the path is palette/[folders, if any]/[page name]:[symbol name]
. The page name does not use a .dg5
extension. For example, palette/widgets:sym
is a valid path, where palette/widgets.dg5
is the file and sym
is the symbol name.
If the symbol is located in a project in this project's lib
folder, the path is lib/[project]/palette/[folders, if any]/[page name]:[symbol name]
. For example, lib/HVAC2/palette/Equipment:Fan East
is a valid path, where Equipment.dg5
is the file, and Fan East
is the symbol name.
See also: Widget Palette.
You can create a symbol based on a group or a non-group component.
To create a symbol:
In the Outline or Document window, select the group or the non-group component.
Look at the Outline. One instance of the symbol that you created has replaced the group or the non-group component that you converted.
The symbol instance that appears when you first create a symbol has a name matching the unique name of the object that you converted to a symbol. If you want to rename the instance to make it clear it is a symbol instance, double-click the instance in the outline and rename it.
Click the Symbols tab to open the Symbols panel.
The Symbols panel contains a list of the symbols in this page. Click the symbol that you created to see a preview of it.
After you have converted a group to a symbol, you cannot convert it back to a group. However, if you convert an object to a symbol by mistake, you can:
To add an instance of a symbol to the page:
Click the Symbols tab to open the Symbols panel. Then, find the symbol in the list.
To edit a symbol, you enter a special symbol editing mode. While in this mode, you can edit symbols only. Changes that you make in symbol editing mode affect all instances of the symbol.
You can edit symbols in two places: in the Document window and in a pop-up.
To edit a symbol in the Document window:
Enter symbol editing mode using one of these methods:
Right-click any instance of the symbol in the Document window or Outline, and choose Edit Symbol.
When you are in symbol editing mode, items the Document window become gray, and the Outline changes to show the symbol component instead of the Stage contents.
Use the Outline and Property Inspector to edit the objects that are inside the symbol.
To edit a symbol in a pop-up:
Use the Outline and Property Inspector to edit the objects that are inside the symbol.
Sometimes, you might want to duplicate a symbol so that you can create a new symbol based on the old one. Duplicating a symbol copies all symbol parameters.
To duplicate a symbol:
Open the Symbols panel.
Sometimes, you might not want all instances of a symbol to be identical. Instead, you might want some properties of the objects inside the symbol to vary based on circumstances. You can do this by creating parameters for the symbol.
A symbol parameter is a special kind of property that you define. Symbol parameters can have different values for each instance of the symbol. After you define them, parameters appear in the Property Inspector. You can bind symbol parameters to properties of objects that are inside the symbol.
To use symbol parameters:
Open the Symbol Parameters dialog using one of these methods:
Select the symbol in the Symbols panel, and select Modify > Edit Properties.
Open the symbol in edit mode, and select Modify > Edit Properties.
The Symbol Parameters dialog appears.
The left panel contains a list of data types and organizational elements. The right panel contains the symbol's current parameters.
These items are available for creating symbol parameters.
A collapsible Property Inspector section. The Symbol property always appears in the Symbol section.
Dragging a string property into a section
A horizontal row of properties. Drag and drop the row first, and then drop properties within it. Right-click the purple box to delete the row and all properties inside it.
Dragging a boolean property into an hbox
A vertical column of properties. Drag and drop an hbox first. Then drag and drop a vbox into the hbox. Finally, drag and drop data types into the vbox.
Dragging a boolean property into a vbox
A floating-point number property.
A string property. Does not support line breaks.
A text property. Supports line breaks.
A boolean value. Can be TRUE or FALSE.
An enum property. Right-click the property to create a list. Items from the list can be selected in the symbol instance's properties.
A path in this DGLux5 project.
A DGLux5 date range.
A DGLux5 trigger.
A DGLux5 fill.
A DGLux5 table.
A path to a data node.
You can re-use a symbol across pages and projects by saving it as a widget.
To delete a symbol:
Videos:
Community Forum discussions: