320x
002011
2020-11-04

[EN] FAQ 004806 | How can I change the details and the National Annex in the STEEL EC3 add-on module ...

Question:
How can I change the details and the National Annex in the STEEL EC3 add-on module using the COM interface?

Answer:
The following code displays all elements of the STEEL EC3 add-on module that can be modified via the COM interface:

// get interface to active model
iModel = iApp.GetActiveModel();

// get interface to STEEL EC3 module
IModule module = iModel.GetModule("STEEL_EC3") as Dlubal.STEEL_EC3.IModule;

// get interface to module case
ICase iStEC3case = module.moGetCase(1, Dlubal.STEEL_EC3.ITEM_AT.AT_NO);

//  get ultimate limit state options (Details Ultimate Limit State)
ULS_OPTIONS optsULS = iStEC3case.moGetULSOptions();

//  get options for stability design (Details Stability)
STABILITY_OPTIONS optsStab = iStEC3case.moGetStabilityOptions();

//  get options for serviceability design (Details Serviceabiltiy)
SERVICEABILITY_DEFORMATION_TYPE optsServDef = iStEC3case.moGetServiceabilityOptions();

//  get fire resistance options (Details Fire Resistance)
FIRE_RESISTANCE_OPTIONS optsFire = iStEC3case.moGetFireResistanceOptions();

//  get other options (Details General)
OTHER_OPTIONS optsOther = iStEC3case.moGetOtherOptions();

// get national annex (e.g. DIN, CEN, ...)
NATIONAL_ANNEX natAn = iStEC3case.moGetNationalAnnex();

// get interface for national annex details
INationalAnnex iNatAn = iStEC3case.moGetNationalAnnexOptions();

// get base data for national annex
NATIONAL_ANNEX_OPTIONS_BASE natAnBase = iNatAn.moGetBaseOptions();

// get data for general method from national annex
NATIONAL_ANNEX_OPTIONS_GM natAnGM = iNatAn.moGetGMOptions();

// get data for lateral-torsional buckling from national annex
NATIONAL_ANNEX_OPTIONS_LTB natAnLTB = iNatAn.moGetLTBOptions();

// get data for stainless steel from national annex
NATIONAL_ANNEX_OPTIONS_STEEL natAnSTEEL = iNatAn.moGetSteelOptions();

The corresponding elements in the parameter dialog box of the add-on module are shown in Image 02.