Open Staad - Output units for forces, moments and dimensions

Hello,

while I am coding in VBA, I need to obtain the output units in Open Staad for forces, moments and dimensions (for example for beams internal forces).

I use the commands: 

GetOutputUnitForSectDimension

GetOutputUnitForForce

GetOutputUnitForMoment

By the way, the result is a number and I do not know which is the related unit (m, mm, inch, ft, kN, kip, ...)

Does anyone know what these numbers mean?

Thank you in advance

Regards

  • The correct syntax of the function is given below

    Dim strOutputUnitForDisplacement As String
    Dim strOutputUnitForRotation As String
    Dim strOutputUnitForForce As String
    Dim strOutputUnitForMoment As String


    objOpenSTAAD.Output.GetOutputUnitForDisplacement strOutputUnitForDisplacement
    objOpenSTAAD.Output.GetOutputUnitForRotation strOutputUnitForRotation
    objOpenSTAAD.Output.GetOutputUnitForForce strOutputUnitForForce
    objOpenSTAAD.Output.GetOutputUnitForMoment strOutputUnitForMoment

    But these functions returns output unit used by the GUI as a string.

    If you want the unit of the displacement for function GetNodeDisplacements or the unit of the force for function GetIntermediateMemberForcesAtDistance, then the unit are always in BASE UNIT of the structure.

    So, function GetOutputUnitForDisplacement  returns the unit used by the GUI and  the unit of the displacement for function GetNodeDisplacements are in BASE UNIT of the structure.