Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API - Steel member buckling coefficient

1 REPLY 1
SOLVED
Reply
Message 1 of 2
systemRobert
653 Views, 1 Reply

API - Steel member buckling coefficient

/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

1 REPLY 1
Message 2 of 2

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.

 

 



Artur Kosakowski

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report