Frage:
Wie kann man mit Hilfe der COM-Schnittstelle die Details und den Nationalen Anhang im STAHL EC3-Modul verändern?
Antwort:
Im folgenden Code werden sämtliche Elemente des Moduls STAHL EC3 ausgelesen, welche über die COM-Schnittstelle modifizierbar sind:
// 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();
Die zugehörigen Elemente im Parameter-Dialog des Moduls sind im Bild 02 dargestellt.