Our webservice offers users the opportunity to communicate with RFEM 6 and RSTAB 9 using various programming languages. Dlubal's high-level functions (HLFs) allow you to expand and simplify the WebService's functionality. In line with RFEM 6 and RSTAB 9, using our WebService makes the engineer's work easier and faster. Check it out now! This tutorial shows you how to use the C# library by means of a simple example.
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.
Webservice is a communication between machines and programs. This communication is provided via the network and can, therefore, be used by any program that can send and receive strings via the HTTP protocol. RFEM 6 and RSTAB 9 provide an interface based on these cross-platform webservices. This tutorial shows the basics using the VBA programming language.
"A good tool is half the job done": This proverb could be applied equally to the software industry. The more a program is task-tailored, the more efficiently the tasks can be solved. The variety and complexity of today's problems, especially in structural engineering, require specifically tailored solutions. Creating your own programs by means of textual programming requires in-depth knowledge and a great ability to abstract. Understandably, only very few engineering offices face this challenge. For this reason, there are additional software solutions providing the user with a visual development environment.
When editing elements via the COM interface, selecting elements is often a problem because it cannot be carried out visually via the work window. The selection can be particularly difficult for models that have been created via the program interface and are then to be modified using a separate program. Apart from the exception, when the selection was made previously via RFEM, there are several alternatives for programming.
RF-COM/RS-COM is a programmable interface that allows the user to expand the main programs RFEM and RSTAB with customized input macros or post‑processing programs. A tool to copy and move selected guidelines in RFEM will be developed in this article. It is also possible to copy or move the guidelines to another work plane. VBA in Excel will be used as the programming environment.
With RFEM 5.06 and RSTAB 8.06, the examples and help files for programming the COM interface are not only available on the Internet, they are also included in the installation. To find them, look for the "SDK" folder in the project directory (usually C:\Users\Public\Documents\Dlubal).
The first part of the post about the COM interface describes opening and closing RFEM. VBA programming language is used in Excel; however, the program sequence is the same as for programming with C#. First, it is necessary to add the corresponding reference in VBA to recognize the commands for the interface. The image on the left shows an example of RFEM 5.