O seguinte código apresenta todos os elementos do módulo adicional STEEL EC3 que podem ser modificados através da interface COM:
- código.vb#
// 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();
#/code#
Os elementos correspondentes na caixa de diálogo dos parâmetros do módulo adicional são apresentados na Figura 02.