SVG´s in the QuickHMI Editor

Create easily your own custom controls with the QuickHMI Editor.

How to do this you will learn in the following chapters.



Create and delete SVG controls

To create a new SVG control, click on "SVG controls" in the Project explorer.

It opens the „SVG Control Manager“, which is like the HTML Manager. 


You have two options for creating a new SVG:


- Click on the Plus-icon to create a new empty SVG, which you can now fill yourself.

- Clicking on the AI-icon also creates a new empty SVG, which you can now fill with the help of the SVG chatbot.




Then determine the name of your new SVG and continue with "OK".




An empty SVG is created for which properties, actions and contents can be defined via syntax. This happens in the "SVG" area of the "SVG Control Manager".

QuickHMI shows you which code lines are responsible for this.




How you define actions and properties you see in the following chapter:


>> Add actions and properties


The SVG can now be defined via syntax. All changes are applied in real time and are visible in the "Preview" area. Here the control element is displayed as an image.

The “Detected properties” section lists all the properties and actions that you have defined for the SVG.




For more information, see the "ViewBox" sub chapter.


>> ViewBox




In addition, you can specify which section of the "SVG Control Manager" should be highlighted. Use the small frame icon in the top corner of each section.



If you have selected the option Create SVG with chatbot, the SVG chatbot will open automatically. 




By entering continuous text, you can instruct the SVG chatbot what kind of SVG should be created. 

It is important to note: “A house is not just a house”. The more precisely and explicitly the desired SVG is described to the chatbot, the better the results will be.

If you want to add properties or actions to the SVG, use the keywords “property” and “action”.


"Create a rectangular house with a triangular roof. The house should have 1 door in the middle and 2 windows slightly offset above the door. I would like to be able to set the color of the roof over a property."




The instruction is sent to the chatbot by pressing the Enter key or clicking on the Arrow button. This may take a moment. 

You also have the option to repeat the instruction to the SVG chatbot or to delete the complete history for this SVG.


After QuickHMI has received the response, the SVG is written directly in the SVG code block. 

In addition, you can see in the SVG chatbot window that the SVG chatbot also provides an explanation of the SVG. A history is created. 





Now you can either make further changes to the SVG yourself or continue to give instructions to the SVG chatbot until you are satisfied with the result. 


Existing SVGs can also be converted into an SVG with chatbot function. To do this, double-click on the icon in the SVG list to the left of the name.


The created SVG control appears under "SVG" with the other controls. With these SVG controls you can interact like all the other controls.


How to use SVG controls and standard controls, you see in the following chapter:


>> Using the control elements





Export and import SVG´s

To export a created control, simply click the export button within the toolbar. 

Then select the file path and export the SVG. This will be exported under the same name as created in the "SVG Control Manager".




For example, the SVG can be opened in a browser.




To import an existing control, click on the import button Then select your desired SVG and confirm.

This will be loaded into the "SVG Control Manager" and can be edited.