cPropMaterialSetTemp Method

assigns the temperatures at which properties are specified for a material. This data is required only for materials whose properties are temperature dependent.

Namespace:  ETABS2016
Assembly:  ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
int SetTemp(
	string Name,
	int NumberItems,
	ref double[] Temp
)

Parameters

Name
Type: SystemString
The name of an existing material property.
NumberItems
Type: SystemInt32
The number of different temperatures at which properties are specified for the material.
Temp
Type: SystemDouble
This is an array that includes the different temperatures at which properties are specified for the material.

Return Value

Type: Int32
Returns zero if the temperatures are successfully set; otherwise it returns a nonzero value
Remarks
Examples
VB
Public Sub Example()
       Dim SapModel As cSapModel
       Dim EtabsObject As cOAPI
       Dim ret As Integer = -1

   '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)

   'specify temps at which properties will be provided
       ReDim MyTemp(2)
       MyTemp(0) = 0
       MyTemp(1) = 50
       MyTemp(2) = 100
       ret = SapModel.PropMaterial.SetTemp("Steel", 3, MyTemp)

   'close ETABS
       EtabsObject.ApplicationExit(False)

   'clean up variables
       SapModel = Nothing
       EtabsObject = Nothing
   End Sub
See Also