The recently introduced Webservices gives users the ability to communicate with RFEM 6 using their programming language of choice. This feature is enhanced with our High Level Functions (HLF) Library. The libraries are available for Python, JavaScript, and C#. This article looks at a practical use case of programming a 2D Truss Generator with Python. "Learning by doing," as the saying goes.
Structures in RFEM 6 can be saved as blocks and reused in other RFEM files. The advantage of dynamic blocks with respect to non-dynamic blocks is that they allow interactive modifications of the structural parameters as a result of modified input variables. One example is the possibility to add structural elements by changing only the number of bays as an input variable. This article will demonstrate the aforementioned possibility for dynamic blocks that are created by scripting.
In RFEM 6 it is possible to save selected objects (as well as whole structures) as blocks and reuse them in other models. Three types of blocks can be distinguished: non-parameterized, parameterized, and dynamic blocks (via JavaScript). This article will focus on the first block type (non-parameterized).