![]() |
v3.0
|
|
In Renga, style determines the category and appearance of many objects, reinforcement of structural elements. To expand the possibilities of reinforcement and the list of categories of engineering network objects that the user can use in Renga project, it is possible to develop a style template in Renga STDL language, get a file with RST extension from it and add it to the project.
The style template sets the appearance and parameters of the style available to the user.
Renga Style Template Description Language (STDL) is a Lua-based language used to describe style templates for Renga. STDL allows for the creation of style templates using Lua's built-in capabilities, including conditions and loops. Additionally, STDL uses JSON to define object style parameters. Furthermore, STDL includes Style Template API functions for interacting with Renga.
In the current version of Renga Professional with Renga STDL, you can create:
Lua is a powerful, efficient, lightweight, embeddable scripting language that works embedded in a "main" program.
Renga STDL is based on Lua 5.4.6. It is important to have a basic understanding of Lua in order to create style templates. The official website lua.org provides all the materials necessary for learning Lua.
JSON is a lightweight data-interchange format. It is easy for humans to read and write.
Renga STDL uses JSON files to define object style parameters and ports. To create a style template, it is necessary to follow the structure described in the Style Template Structure topic.
The Style Template API provides classes and functions for creating object geometry, port parameters, and managing object style parameters within the object style editor. The documentation details the classes and functions available within the Style Template API.