Hide Table of Contents
InsertSlicing Method (IFeatureManager)

Creates and inserts slicing into the FeatureManager design tree.

.NET Syntax

Visual Basic (Declaration) 
Function InsertSlicing( _
   ByVal SlicingData As System.Object, _
   ByRef Errors As System.Integer _
) As System.Object
Visual Basic (Usage) 
Dim instance As IFeatureManager
Dim SlicingData As System.Object
Dim Errors As System.Integer
Dim value As System.Object
 
value = instance.InsertSlicing(SlicingData, Errors)
C# 
System.object InsertSlicing( 
   System.object SlicingData,
   out System.int Errors
)
C++/CLI 
System.Object^ InsertSlicing( 
&   System.Object^ SlicingData,
&   [Out] System.int Errors
) 

Parameters

SlicingData
ISlicingData (see Remarks)
Errors
Errors as defined in swInsertSlicingError_e

Return Value

Array of sketch and reference plane objects

Example

See the ISlicingData example.

Remarks

This method invokes the Slicing tool. For more information, refer to SOLIDWORKS Help > Parts and Features > Controlling Parts > Slicing Tool.

Before calling this method:

  1. Pre-select in the graphics area a planar entity (to create a linear pattern of slices) or a combination of a linear entity and a point entity (to create an angular pattern of slices whose axis is the linear entity).
  2. Use IFeatureManager::GetSlicingData to get an ISlicingData object.
  3. Set ISlicingData::PlaneReferences if step 1 is not performed. Specify a planar entity or a combination of a linear entity and a point entity as specified in step 1.
  4. Set other ISlicingData properties.
  5. Populate SlicingData with the ISlicingData object.

After calling this method:

  • Use the array of sketch and reference plane objects returned by this method to perform further work.
  • If ISlicingData::AddSlicingPlanesAndSketchesToFolder was set to true, then a Slice1 folder in the FeatureManager design tree is created containing the slicing planes and sketches. You can edit the slicing planes and sketches individually as needed.
  • Delete the Slice1 folder and its contents to remove slicing from the model.
 

See Also

Availability

SOLIDWORKS 2020 FCS, Revision Number 28.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:   InsertSlicing 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) 2024 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.