Hide Table of Contents
GetBodies3 Method (IComponent2)

Gets the bodies in the component.

.NET Syntax

Visual Basic (Declaration) 
Function GetBodies3( _
   ByVal BodyType As Integer, _
   ByRef BodiesInfo As Object _
) As Object
Visual Basic (Usage) 
Dim instance As IComponent2
Dim BodyType As Integer
Dim BodiesInfo As Object
Dim value As Object
 
value = instance.GetBodies3(BodyType, BodiesInfo)
C# 
object GetBodies3( 
   int BodyType,
   out object BodiesInfo
)
C++/CLI 
Object^ GetBodies3( 
&   int BodyType,
&   [Out] Object^ BodiesInfo
) 

Parameters

BodyType

Type of body as defined by swBodyType_e

BodiesInfo
Array of information about the returned bodies as defined in swBodyInfo_e

Return Value

Array of bodies in the component

Example

Remarks

This method only supports solid and surface bodies.

 

This method and the now obsolete IComponent2::GetBodies2 methods support lightweight components. The now obsolete IComponent2::GetBodies does not.

 

In addition to returning an array of the bodies in a component, this method also returns an array containing information about those bodies that indicates whether the bodies are normal or user bodies. User bodies are original component bodies that have been modified in an assembly (e.g., a normal component body is cut in the assembly, resulting in two user component bodies). User bodies are not created for surface bodies.

 

See Also

Availability

SolidWorks 2009 SP4, Revision Number 17.4


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetBodies3 Method (IComponent2)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:



x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2012 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.