GetBodies method


Your Ad Here


Topsolid online Help Index

Created : v6.6

 

IShape.GetBodies(BodyIds)

Description

This method finds the ids of the bodies of the shape.

Parameters

 

OUT:

 

Variant BodyIds (array)

Array of the ids of the bodies (array of long).

 

Remarks

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].

Example

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

Your Ad Here