OpenSTAAD V8i

GetInputUnitForLength

Retrieves the input unit of length of the currently open .STD file.

VB Syntax

GetInputUnitForLength InputUnitForLength

Where:

InputUnitForLength

A string variable that will hold the input unit for length of the currently open .STD file. Later the value will be internally converted to an integer ranging from 0 to 7 (0- Inch, 1- Feet, 2- Feet, 3- CentiMeter, 4- Meter, 5- MilliMeter, 6 - DeciMeter, 7 – KiloMeter).

VB Example

Dim objOpenSTAAD As Object
Dim strInputUnitForLength As String
'Get the application object
Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
'Get Length Unit
objOpenSTAAD.GetInputUnitForLength strInputUnitForLength