Get / Set the current design standard #51
-
Is there any possibility to set the design standard of e.g. the steel-addon? (see below) It used to be possible with the RFEM5 API and was a crucial functionality but I cant find a function / API call to set the standard for the addons except for the load combination wizard. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @NathanMSY, string standard = "EN 1993 | NBN | 2019-08";
// activate steel design
var addOnStatus = new addon_list_type()
{
design_addons = new addon_list_design_addons_list_type()
{
steel_design_active = true,
steel_design_activeSpecified = true,
}
};
try
{
model.begin_modification("Geometry");
//model.set_section(sectionBuildtUp);
model.set_addon_statuses(addOnStatus);
// change standard of steel design
byte[] standardByte = new UTF8Encoding(true).GetBytes($"general.current_standard_for_steel_design = '{standard}'");
using (FileStream file = File.Open($"{Directory.GetCurrentDirectory()}./standard.js", FileMode.Create, FileAccess.Write))
{
file.Write(standardByte);
}
model.run_script($"{CurrentDirectory}./standard.js");
}
... We will consider adding such function for future development. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply, Rebecca. |
Beta Was this translation helpful? Give feedback.
Hi @NathanMSY,
unfortunately there is no simple function to set the annex/standard for add-ons at the moment. Nevertheless there is a workaround you can use: