Hide Table of Contents
SketchReplace Method (ISketchManager)

Replaces a sketch entity in a model with another sketch entity, preserving all references.

.NET Syntax

Visual Basic (Declaration) 
Function SketchReplace( _
   ByVal MakeConstruction As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ISketchManager
Dim MakeConstruction As System.Boolean
Dim value As System.Boolean
 
value = instance.SketchReplace(MakeConstruction)
C# 
System.bool SketchReplace( 
   System.bool MakeConstruction
)
C++/CLI 
System.bool SketchReplace( 
&   System.bool MakeConstruction
) 

Parameters

MakeConstruction
True to convert the replaced sketch entity to construction geometry, false to not

Return Value

True if the the sketch entity is successfully replaced, false if not

Example

Remarks

Before calling this method, call IModelDocExtension::SelectByID2 with Append set to true to select each of the following entities:

  1. Sketch entity to be replaced.
  2. Replacement sketch entity that does not reference downstream geometry or have references outside of the sketch.

After calling this method, call ISketchManager::InsertSketch to rebuild the model with the replacement sketch.

 

See Also

Availability

SOLIDWORKS 2014 FCS, Revision Number 22.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:   SketchReplace Method (ISketchManager)
*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) 2017 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.