Answer:
Yes, it is currently possible to change the standards indirectly with JavaScript. The following script executes a JavaScript script in RFEM that contains the description of the desired steel structure standard to set the standard in RFEM:
…
import os
import sys
baseName = os.path.basename(__file__)
dirName = os.path.dirname(__file__)
sys.path.append(dirName+ r'/../..')
from RFEM.enums import *
from RFEM.initModel import Model, SetAddonStatus
def SteelAnnex(standard: str = 'EN 1993 | DIN | 2020-11'):
with open(dirName+r"./standard.js", "w") as std:
std.write("general.current_standard_for_steel_design = '{}'".format(standard))
Model.clientModel.service.run_script(dirName+r"./standard.js")
os.remove(dirName+r"./standard.js")
Model(True,'Demo')
SetAddonStatus(Model.clientModel, AddOn.steel_design_active)
SteelAnnex()
…
The easiest way to determine the description of the desired standard is to use the JavaScript console in RFEM. To do this, use the command that corresponds to the add-on of interest:
The script adjusts the standard for the Steel Design add-on in RFEM. It can be easily integrated into the existing WebService scripts, thus allowing you to change the standards for all add-ons.