/Robert
I really need to change a steel members buckling coefficient with the API.
I got the following VB example from some API documentation:
--------------------------------------------------------------------------------------------------------------------
4.4.2 Addition of Code Settings to a Label of Member Parameters
‘....
‘......
‘.........
Dim RdmCodeMembDefPar As Object
Set RdmCodeMembDefPar = RdmMembDefData.CodeParams
With RdmCodeMembDefPar
.BuckLenghtCoeffY = 1#
.BucklingDiagramY = I_DBD_CM66_NO
.BuckLenghtCoeffZ = 0.8
.BucklingDiagramZ = I_DBD_CM66_PINNED_STIFF_0_7
.LoadTypeY = I_DLT_CM66_NO_MID_SPAN_FORCE_LOAD
.LoadTypeZ = I_DLT_CM66_USR_DEF_MOM_MC
.LoadTypeDistY = 2#
.LoadTypeMomMcZ = 26#
.LatBuckType = I_DLBT_CM66_CANTILEVER
.LoadLevel = I_DLL_CM66_UPP_SECT_PAR_LOADED
.LoadLevelValue = 1.2
.LatBuckCoef_LowFlan = I_DLBCD_CM66_USER_DEFINED
.LatBuckCoef_UppFlan = I_DLBCD_CM66_USER_DEFINED
.UserDefLatBuckCoef_LowFlan = 0.7
.UserDefLatBuckCoef_UppFlan = 0.9
.TensAreaNetGros = 1.1
.TubeControl = 1
‘.........
‘......
‘...
End With
RdmMembDefData.CodeParams = RdmCodeMembDefPar
‘.........
‘......
‘...
--------------------------------------------------------------------------------------------------------------------
But I cant do that in C#! I can't figure out how to cast the generic object to a code parameter object.
Do anyone have an idea of how to do this?
/Robert
Solved! Go to Solution.
Solved by Artur.Kosakowski. Go to Solution.
Robert,
My assumption is that you managed to change the member length coefficient and now you want to change the buckling length coefficients for SS-EN code using the following code:
IRDimMembParamsEC3 codeData = (IRDimMembParamsEC3)membLabel.Data;
codeData.BuckLengthCoeffY = 0.9;
codeData.BuckLengthCoeffZ = 0.9;
data.CodeParams = codeData;
Please use EC32 instead of EC3 as EC3 refers to the older version of Eurocode 3 whereas the Swedish NAD is based on its newer release.
If you find your post answered press the Accept as Solution button please. This will help other users to find solutions much faster. Thank you.