Hide Table of Contents
CreateFeatureFromBody3 Method (IPartDoc)

Creates a new imported feature from the specified temporary body.

.NET Syntax

Visual Basic (Declaration) 
Function CreateFeatureFromBody3( _
   ByVal Body As System.Object, _
   ByVal MakeRefSurface As System.Boolean, _
   ByVal Options As System.Integer _
) As System.Object
Visual Basic (Usage) 
Dim instance As IPartDoc
Dim Body As System.Object
Dim MakeRefSurface As System.Boolean
Dim Options As System.Integer
Dim value As System.Object
 
value = instance.CreateFeatureFromBody3(Body, MakeRefSurface, Options)
C# 
System.object CreateFeatureFromBody3( 
   System.object Body,
   System.bool MakeRefSurface,
   System.int Options
)
C++/CLI 
System.Object^ CreateFeatureFromBody3( 
&   System.Object^ Body,
&   System.bool MakeRefSurface,
&   System.int Options
) 

Parameters

Body
Temporary body
MakeRefSurface

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

Options
Options as defined in swCreateFeatureBodyOpts_e

Return Value

Newly created imported feature or Nothing or NULL if the operation fails

Example

Remarks

This method is intended to be 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. This method is not limited to body objects obtained from knitting operations.

This method allows the application to decide how much additional work needs to 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. If so, 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 or IPartDoc::ICreateSurfaceFeatureFromBody.

 

See Also

Availability

SolidWorks 2000 SP1, Revision Number 8.1


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