Skip to content

Get / Set the current design standard #51

Answered by Rebecca-Coding21
NathanMSY asked this question in Q&A
Discussion options

You must be logged in to vote

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:

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_…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Rebecca-Coding21
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants