Retrieves the mechanical properties for a material with an isotropic directional symmetry type.
Namespace: ETABS2015Assembly: ETABS2015 (in ETABS2015.dll) Version: 15.0.0.0 (15.0.0.0)
int GetMPIsotropic(
string Name,
ref double E,
ref double U,
ref double A,
ref double G,
double Temp = 0
)
Function GetMPIsotropic ( _
Name As String, _
ByRef E As Double, _
ByRef U As Double, _
ByRef A As Double, _
ByRef G As Double, _
Optional Temp As Double = 0 _
) As Integer
int GetMPIsotropic(
String^ Name,
double% E,
double% U,
double% A,
double% G,
double Temp = 0
)
Return Value
Returns zero if the data is successfully retrieved; otherwise it returns a nonzero value.
The function returns an error if the symmetry type of the specified material is not isotropic.
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
EtabsObject = CreateObject("CSI.ETABS.API.ETABSObject")
ret = EtabsObject.ApplicationStart()
SapModel = EtabsObject.SapModel
ret = SapModel.InitializeNewModel()
ret = SapModel.File.NewSteelDeck(4,12,12,4,4,24,24)
ret = SapModel.PropMaterial.SetMaterial("Steel", ETABS2013.eMatType.Steel)
ret = SapModel.PropMaterial.SetMPIsotropic("Steel", 29500, 0.25, 6E-06)
ret = SapModel.PropMaterial.GetMPIsotropic("Steel", e, u, a, g)
EtabsObject.ApplicationExit(False)
SapModel = Nothing
EtabsObject = Nothing
End Sub
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", ETABS2013.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