User-defined components allow you to create your own component series and use them in RFEM 6. In addition to the series provided in the Dlubal Center, company-specific design logics and detail designs can also be integrated.
Requirements
The following is required for creating and calculating user-defined components:
- Basic subscription of the Dlubal API
- Create API key in the Extranet
- Integrate API key in RFEM
Create API Key in the Extranet
- Open Extranet
- Navigate to API & Cloud → API II → My API Keys
- Select Create new API key
- Assign a name and generate the key
- Save
Integrate API Key in RFEM
- Open RFEM
- Open the menu View → Console
- Select Python | Dlubal API | gRPC
- Select the key symbol
- Enter the API key (name + key)
- Confirm
The key is saved in a config.ini file.
Creating a User-defined Component
You can activate the input of a user-defined component as follows:
- Open the Component Series dialog box.
- Check the User-defined option.
This unlocks all input fields.
Categories (Metadata)
- Assignment type (e.g., object assignment)
- Manufacturer / new manufacturer
- Standards and output
- Function / category
- Material
Configuration Files (Files)
1. Images
- Add any images or system sketches
- Purpose: visual representation of the component
2. Parameter Structure (JSON File)
- Grouping of the input structure
- Definition of the parameter assignment
Important Fields:
| group |
|
|
|
|
|
| key |
|
| caption |
|
|
|
| symbol, unit |
|
| type |
|
Additional groups can be added as desired.
3. Parameter Data (Excel File)
- The data defines the parameter structure.
- Each row must have a unique name.
- The columns are freely definable, but must be used consistently.
4. Visualization (RFEM 6 File)
- Enables detailed visualization in the RFEM work window
- However, the component can also be created without a visualization file
Python Scripts (Script After Calculation)
The script after the calculation controls the designs of the component.
Function: define_design_checks
- Definition of the design categories
- Type = display in RFEM (freely selectable)
- Description, category, and subcategory freely definable
Function: evaluate_single_check
- Transfer of the utilizations to RFEM
Function: setup_component_series_data()
- Execution of the design check
- Reading the parameters via properties_parameters
- The key must be identical to JSON and Excel
- Consistent type required between definition and evaluation
Save and Reuse Component in the Dlubal Center
You can save a user-defined component as a template to use it in other projects as well.
Proceed as follows:
- In the Component Series dialog box, click the
button at the bottom.
- The 'Save Component Series' window appears with the suggested storage folder Documents → Dlubal Software → Component Series.
- Specify a file name and then confirm with the Save button.
User-defined components are added in the Dlubal Center in the Component Series category. Under the entry Owner → User-defined, you can select the appropriate component there and assign it to a member.
Alternatively, use the
button at the bottom of the Component Series dialog box to import the component from a file.