Topsolid online Help Index
Created : v6.6
IShape.GetBodies(BodyIds)
This method finds the ids of the bodies of the shape.
|
OUT:
|
Variant BodyIds (array) |
Array of the ids of the bodies (array of long).
|
A shape is made of zero (void), one (connected), or more (disconnected) bodies. Each body of a shape is identified by a body identifier which is the index of the body in the range [1, NumberOfBodies].
Dim BodyIds As Variant
Dim BodyCount As Long
Dim Id As Long
Dim i As Integer
...
TopShape.GetBodies BodyIds
BodyCount = UBound(BodyIds, 1)
For i = 0 To BodyCount
Id = BodyIds(i)
...
Next i
Topsolid online Help Index