Hide Table of Contents
PostSplitBody2 Method (IFeatureManager)

Creates a Split feature.

.NET Syntax

Visual Basic (Declaration) 
Function PostSplitBody2( _
   ByVal BodiesToMark As System.Object, _
   ByVal ConsumeCut As System.Boolean, _
   ByVal Origins As System.Object, _
   ByVal SavePaths As System.Object, _
   ByVal OverrideTemplateName As System.String _
) As System.Object
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim BodiesToMark As System.Object
Dim ConsumeCut As System.Boolean
Dim Origins As System.Object
Dim SavePaths As System.Object
Dim OverrideTemplateName As System.String
Dim value As System.Object
 
value = instance.PostSplitBody2(BodiesToMark, ConsumeCut, Origins, SavePaths, OverrideTemplateName)
C# 
System.object PostSplitBody2( 
   System.object BodiesToMark,
   System.bool ConsumeCut,
   System.object Origins,
   System.object SavePaths,
   System.string OverrideTemplateName
)
C++/CLI 
System.Object^ PostSplitBody2( 
&   System.Object^ BodiesToMark,
&   System.bool ConsumeCut,
&   System.Object^ Origins,
&   System.Object^ SavePaths,
&   System.String^ OverrideTemplateName
) 

Parameters

BodiesToMark
Array of bodies to mark for the split operation
ConsumeCut
True to remove the bodies from the part, false to not
Origins
Array of origins of the bodies to save
SavePaths
Array of paths and filenames of the part documents to which to save BodiesToMark
OverrideTemplateName
Path and filename of the part or assembly template that overrides the default (see Remarks)

Return Value

Split feature

Example

Remarks

To create a Split feature:

  1. Select the entities to use to split the part into multiple bodies.

  2. Call IFeatureManager::PreSplitBody to get all of the bodies created by splitting the part.

  3. Call this method to create the Split feature.

The size of the BodiesToMark, Origins, and SavePaths arrays must be equal and greater than 0. If you pass an empty path and filename for a body, then that body is only marked, is not saved to a separate part document, and remains with the original part.

 

OverrideTemplateName overrides the default part or assembly template that is specified in Tools > Options > System Options > File Locations. The template is applied to all new part or assembly files created during the split operation.

 

To find out whether the bodies in a Split feature are consumed, use ISplitBodyFeatureData::Consume.

 

IFeature::GetTypeName2 and IFeature::GetTypeName return:

  • Split for a feature that was created by splitting a part into multiple parts by using either this method or the Split feature in the user interface. You can access a split-body feature's data using ISplitBodyFeatureData.
  • SplitBody for a body created by splitting a part and saving the body to a part. You cannot access the data of a split body saved to a part.
 

See Also

Availability

SOLIDWORKS 2018 FCS, Revision Number 26.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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   PostSplitBody2 Method (IFeatureManager)
*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) 2019 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.