cPropAreaGetTypeOAPI Method |
Retrieves the property type for the specified area property.
Namespace:
ETABS2016
Assembly:
ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntaxint GetTypeOAPI(
string Name,
ref int PropType
)
Function GetTypeOAPI (
Name As String,
ByRef PropType As Integer
) As Integer
int GetTypeOAPI(
String^ Name,
int% PropType
)
abstract GetTypeOAPI :
Name : string *
PropType : int byref -> int
Parameters
- Name
- Type: SystemString
The name of an existing area property. - PropType
- Type: SystemInt32
This is 1, 2 or 3, indicating the type of area property.
Value | Type |
---|
1 | Shell |
2 | Plane |
3 | Asolid |
Return Value
Type:
Int32Returns zero if the type is successfully retrieved; otherwise it returns nonzero.
RemarksPlane and Asolid area properties are not supported in ETABS.
ExamplesPublic Sub Example()
Dim SapModel As cSapModel
Dim EtabsObject As cOAPI
Dim ret As Integer = -1
Dim PropType As Integer
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.PropArea.GetTypeOAPI("SLAB1", PropType)
EtabsObject.ApplicationExit(False)
SapModel = Nothing
EtabsObject = Nothing
End Sub
See Also