OpenSTAAD V8i

Geometry.GetNodeDistance

Returns the distance between the nodes as a double variable.

VB Syntax

Geometry.GetNodeDistance NodeNoA, NodeNoB 

Where:

NodeNoA, NodeNoB

Long variables providing the node numbers.

Return Value

(Numeric value) A double variable containing distance between the nodes.

VB Example

 Dim objOpenSTAAD As Object
 Dim NodeNoA As Long
 Dim NodeNoB As Long
 Dim NodeDistance As Double
'Get the application object
'Get the distance between node 10 and 11
 NodeNoA = 10
 NodeNoB = 11
 NodeDistance = objOpenSTAAD.Geometry.GetNodeDistance NodeNoA, NodeNoB