cPropAreaGetDeck Method |
Namespace: ETABS2016
int GetDeck( string Name, ref eDeckType DeckType, ref eShellType ShellType, ref string MatProp, ref double Thickness, ref int color, ref string notes, ref string GUID )
If this item is Filled, use the GetDeckFilled(String, Double, Double, Double, Double, Double, Double, Double, Double, Double, Double) function to get additional parameters.
If this item is Unfilled, use the GetDeckUnfilled(String, Double, Double, Double, Double, Double, Double) function to get additional parameters.
If this item is SolidSlab, use the GetDeckSolidSlab(String, Double, Double, Double, Double) function to get additional parameters.
Please note that for deck properties, this is always Membrane
This item does not apply when ShellType is Layered.
This item does not apply when ShellType is Layered.
Imports [Namespace] Public Sub Example() Dim SapModel As [Namespace].cSapModel Dim EtabsObject As cOAPI Dim ret As Integer = -1 Dim DeckType As eDeckType Dim ShellType As eShellType Dim MatProp As String Dim Thickness As Double Dim Color As Integer Dim Notes As String Dim GUID As String '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) 'set new area property ret = SapModel.PropArea.SetDeck("MyShellProp1A", eDeckType.Filled, eShellType.ShellThin, "4000Psi", 14) 'get area property data ret = SapModel.PropArea.GetDeck("MyShellProp1A", DeckType, ShellType, MatProp, Thickness, Color, Notes, GUID) 'close ETABS EtabsObject.ApplicationExit(False) 'clean up variables SapModel = Nothing EtabsObject = Nothing End Sub