cPropMaterialGetMPIsotropic Method |
Namespace: ETABS2016
int GetMPIsotropic( string Name, ref double E, ref double U, ref double A, ref double G, double Temp = 0 )
This item applies only if the specified material has properties that are temperature dependent. That is, it applies only if properties are specified for the material at more than one temperature.
Public Sub Example() Dim SapModel As cSapModel Dim EtabsObject As cOAPI Dim ret As Integer = -1 Dim e As Double Dim u As Double Dim a As Double Dim g As Double 'create ETABS object EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject") 'start ETABS application ret = EtabsObject.ApplicationStart() 'create SapModel object SapModel = EtabsObject.SapModel 'initialize model ret = SapModel.InitializeNewModel() 'create steel deck template model ret = SapModel.File.NewSteelDeck(4,12,12,4,4,24,24) 'initialize new material property ret = SapModel.PropMaterial.SetMaterial("Steel", eMatType.Steel) 'assign isotropic mechanical properties ret = SapModel.PropMaterial.SetMPIsotropic("Steel", 29500, 0.25, 6E-06) 'get isotropic mechanical properties ret = SapModel.PropMaterial.GetMPIsotropic("Steel", e, u, a, g) 'close ETABS EtabsObject.ApplicationExit(False) 'clean up variables SapModel = Nothing EtabsObject = Nothing End Sub