Hide Table of Contents
ICreateFeatureFromBody4 Method (IPartDoc)

Creates a new imported feature from the specified temporary body.

.NET Syntax

Visual Basic (Declaration) 
Function ICreateFeatureFromBody4( _
   ByVal Body As Body2, _
   ByVal MakeRefSurface As System.Boolean, _
   ByVal Options As System.Integer _
) As Feature
Visual Basic (Usage) 
Dim instance As IPartDoc
Dim Body As Body2
Dim MakeRefSurface As System.Boolean
Dim Options As System.Integer
Dim value As Feature
value = instance.ICreateFeatureFromBody4(Body, MakeRefSurface, Options)
Feature ICreateFeatureFromBody4( 
   Body2 Body,
   System.bool MakeRefSurface,
   System.int Options
Feature^ ICreateFeatureFromBody4( 
&   Body2^ Body,
&   System.bool MakeRefSurface,
&   System.int Options


Temporary body

If the body cannot be knit to a solid or if a solid body already exists in this model, then True creates of a reference surface feature


Option as defined by swCreateFeatureBodyOpts_e

Return Value

Newly created imported feature or NULL if the operation fails


This method:

  • Is intended as the final call in a knitting operation. The body that results from your knitting efforts can be converted into an imported body feature in the SolidWorks model.

  • Is not limited to IBody2 objects obtained from knitting operations.

  • Allows the application to decide how much additional work must be done to the model before creating the feature. The options listed in the swCreateFeatureBodyOpts_e enumeration can be OR'd together to provide additional checking or simplification of the model. If you specify swCreateFeatureBodySimplify for Options, then swCreateFeatureBodyCheck is implied.

If the application passes 0 for the options argument, then the options are disabled and the model is passed without any checking. It is up to the application to ensure that the model is a valid model.

If this method fails, the error might be caused by creating a sheet (surface) body from a multiple shells body. If so, replace this method with IPartDoc::CreateSurfaceFeatureFromBody and IPartDoc::ICreateSurfaceFeatureFromBodyCount2.


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:   ICreateFeatureFromBody4 Method (IPartDoc)
*   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.