Hide Table of Contents
ISetBody3 Method (IFeature)

Replaces the body of the base feature.

.NET Syntax

Visual Basic (Declaration) 
Function ISetBody3( _
   ByVal BodyIn As Body2, _
   ByVal ApplyUserIds As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IFeature
Dim BodyIn As Body2
Dim ApplyUserIds As System.Boolean
Dim value As System.Boolean
value = instance.ISetBody3(BodyIn, ApplyUserIds)
System.bool ISetBody3( 
   Body2 BodyIn,
   System.bool ApplyUserIds
System.bool ISetBody3( 
&   Body2^ BodyIn,
&   System.bool ApplyUserIds



Pointer to the temporary body that replaces the base feature body


True applies user-defined face IDs, false does not

Return Value

True if the body was successfully replaced, false if not


You must create the replacement body as an imported body using IBody2::CreateBodyFromSurfaces or IBody2::ICreateTempBodyFromSurfaces, as a copy of an imported body generated by these methods, or using translation from IGES in, STEP in, and so on.

If this feature is not the base feature or the body is not an imported body, then the method returns false.

This method replaces the base body or ref-surface body if you created either of these features from imported geometry. If child features exist, then you can use IFace2::GetFaceId to set the face IDs to both the old body and the replacement body before calling IFeature::ISetBody3. For example, if you are expecting a child feature on a face of the old body to be mapped to a face on the replacement body, you need to set the same ID (integer) to these two faces. This mechanism enables child features to re-attach themselves to the replacement body because IFeature::ISetBody3 cannot do this automatically.

If applyUserIds...

Then Feature::ISetBody3...


Tries to match the face IDs on the replacement body with IDs on the child features. This helps when re-attaching the features to the replacement body.


Replaces the original body with the replacement body. Face IDs are not be used to match up new faces with child features.


See Also


SolidWorks 2001Plus FCS, Revision Number 10.0

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

Subject:   Feedback on Help Topics
Page:   ISetBody3 Method (IFeature)
*   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:


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

Web Help Content Version: API Help (English only) 2013 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.