Download OpenSTAAD User Manual

Transcript
4.2 Geometry Functions
Geometry.AddNode
This function adds a node in the structure.
VB Syntax
Geometry.AddNodeCoordX, CoordY, CoordZ
Where:
CoordX, CoordY, CoordZ
Double variables providing the nodal coordinates X, Y and Z of the NodeNo.
Return Value
(Boolean) True (1) if the function is successful, false (0) otherwise.
VB Example
Dim objOpenSTAAD As Object
Dim CoordX As Double
Dim CoordY As Double
Dim CoordZ As Double
'Get the application object
Set objOpenSTAAD = GetObject( , "StaadPro.OpenSTAAD")
CoordX = 3.0
CoordY = 2.0
CoordZ = 3.0
'Add a node (3.0, 2.0, 3.0)
objOpenSTAAD.Geometry.AddNode CoordX, CoordY, CoordZ
Geometry.AddPlate
This function adds a plate element between existing nodes.
VB Syntax
Geometry.AddPlateNodeA, NodeB, NodeC, NodeD
Geometry.AddPlateNodeA, NodeB, NodeC
Where:
NodeA, NodeB, NodeC, NodeD
Long variables, provide element connectivity.
Return Value
(Boolean) True (1) if the function is successful, false (0) otherwise.
38 — OpenSTAAD V8i (SELECTseries 4)