cPointObjGetLocalAxes Method

Retrieves the local axis angles for a point object.

Namespace:  ETABS2016
Assembly:  ETABS2016 (in ETABS2016.dll) Version: 16.0.0.0 (16.0.0.0)
Syntax
int GetLocalAxes(
	string Name,
	ref double A,
	ref double B,
	ref double C,
	ref bool Advanced
)

Parameters

Name
Type: SystemString
The name of an existing point object.
A
Type: SystemDouble
B
Type: SystemDouble
The local axes of the point are defined by first setting the positive local 1, 2 and 3 axes the same as the positive global X, Y and Z axes and then doing the following: [deg]
  1. Rotate about the 3 axis by angle a.
  2. Rotate about the resulting 2 axis by angle b.DOF must be active.
  3. Rotate about the resulting 1 axis by angle c.DOF must not be fixed.
C
Type: SystemDouble
Advanced
Type: SystemBoolean
This item is True if the point object local axes orientation was obtained using advanced local axes parameters.

Return Value

Type: Int32
Returns zero if the local axes angles are successfully retrieved, 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
   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)

'get local axes assignments
   ret = SapModel.PointObj.GetLocalAxes("1", a, b, c, Advanced)

'close ETABS
   EtabsObject.ApplicationExit(False)

'clean up variables
   SapModel = Nothing
   EtabsObject = Nothing

End Sub
See Also