Add-on Graphics syntax
The Add-On Graphic .hmi file contains the configuration of an exported Add-On Graphic.
The file follows the structure:
namespace ViewDesigner::AOG;
using HMICatalog;
/* HMI Device Type: 9" PanelView 5510 2715P-T9WD */
AddOnGraphic [name] {
<Add-On Graphic properties>
<user defined properties>
<graphic element instances>
}
For example:
namespace ViewDesigner::AOG;
using HMICatalog;
/* HMI Device Type: 9" PanelView 5510 2715P-T9WD */
AddOnGraphic MyAOG {
Description := "";
Vendor := "";
Major := 1;
Minor := 0;
Extended := "";
Note := "";
Width := 75;
Height := 78.5;
TerminalWidth := 800;
TerminalHeight := 480;
UserProperties {
TagInstance {
DataType := "::LGX.REAL";
Description := "";
Category := "General";
}
}
Button Button_001 {
FillColor := "#263a4e";
Border {
Color := "#262324";
BorderStyle {
Line := PenStyle.SolidLine;
Cap := CapStyle.SquareCap;
Join := JoinStyle.MiterJoin;
}
Width := 2;
}
CornerRadius := 3;
TextAlignment := EnumAlignment.HCENTER_VCENTER;
FontName := "Arial Unicode MS";
FontSize := 12;
FontColor := "#ffffff";
Bold := true;
Text := "Button";
UsePredefinedDisabled := true;
X := 0;
Y := 0;
Width := 75;
Height := 22.5;
Angle := 0;
Enabled := true;
^Visible := true;
Opacity := 100;
Access := EnumElementAccessFamily.Inherit;
}
Button Button_002 {
FillColor := "#263a4e";
Border {
Color := "#262324";
BorderStyle {
Line := PenStyle.SolidLine;
Cap := CapStyle.SquareCap;
Join := JoinStyle.MiterJoin;
}
Width := 2;
}
CornerRadius := 3;
TextAlignment := EnumAlignment.HCENTER_VCENTER;
FontName := "Arial Unicode MS";
FontSize := 12;
FontColor := "#ffffff";
Bold := true;
Text := "Button";
UsePredefinedDisabled := true;
X := 0;
Y := 31.25;
Width := 75;
Height := 22.5;
Angle := 0;
Enabled := true;
^Visible := true;
Opacity := 100;
Access := EnumElementAccessFamily.Inherit;
}
NumericDisplay NumericDisplay_001 {
DigitsBeforeDecimal := 5;
DigitsAfterDecimal := 0;
LeadingZero := false;
TrailingZeros := false;
Rounding := EnumNumericRounding.Nearest;
LeadingZerosFill := false;
Value := 0 -> "TagInstance";
FontName := "Arial Unicode MS";
FontSize := 15;
Bold := true;
FontColor := "#000000";
TextAlignment := EnumAlignment.HRIGHT_VCENTER;
Padding := 0;
CornerRadius := 0;
Border {
Color := "#000000";
BorderStyle {
Line := PenStyle.NoPen;
Cap := CapStyle.SquareCap;
Join := JoinStyle.MiterJoin;
}
Width := 1;
}
FillColor := "#00000000";
X := 15.5;
Y := 56.5;
Width := 44;
Height := 22;
Angle := 0;
Enabled := true;
^Visible := true;
Opacity := 100;
Access := EnumElementAccessFamily.Inherit;
}
}
Provide Feedback