Hide Table of Contents
SketchConstraintsDel Method (IModelDoc2)

Deletes the specified relationship (constraint) on the currently selected sketch item.

.NET Syntax

Visual Basic (Declaration) 
Sub SketchConstraintsDel( _
   ByVal ConstrInd As Integer, _
   ByVal IdStr As String _
) 
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim ConstrInd As Integer
Dim IdStr As String
 
instance.SketchConstraintsDel(ConstrInd, IdStr)
C# 
void SketchConstraintsDel( 
   int ConstrInd,
   string IdStr
)
C++/CLI 
void SketchConstraintsDel( 
&   int ConstrInd,
&   String^ IdStr
) 

Parameters

ConstrInd
Constraint number on the selected entity; 0-based index
IdStr
Constraint to delete (see Remarks)

Remarks

To delete a tangency relation, which is the third relation on the selected arc, specify:

Part.SketchConstraintsDel 2, "sgTANGENT"

The available constraints are as follows. Pass them as strings embedded in quotes:

SolidWorks 2005 and earlier

SolidWorks 2006 and later

  • sgHORIZONTAL (2D sketch)

  • sgHORIZONTAL2D

  • sgHORIZONTAL (3D sketch)

  • sgALONGX3D

  • sgHORIZPOINTS (2D sketch)

  • sgHORIZONTALPOINTS2D

  • sgHORIZPOINTS (3D sketch)

  • sgALONGXPOINTS3D

  • sgVERTICAL (2D sketch)

  • sgVERTICAL2D

  • sgVERTICAL (3D sketch)

  • sgALONGY3D

  • sgVERTPOINTS (2D sketch)

  • sgVERTPOINTS2D

  • sgVERTPOINTS (3D sketch)

  • sgALONGYPOINTS3D

  • sgALONGZPOINTS

  • sgALONGZ

  • sgCOLINEAR

  • sgCORADIAL

  • sgPERPENDICULAR

  • sgPARALLEL

  • sgTANGENT

  • sgCONCENTRIC

  • sgCOINCIDENT

  • sgSYMMETRIC

  • sgATMIDDLE

  • sgATINTERSECT

  • sgATPIERCE

  • sgFIXED

  • sgANGLE

  • sgARCANG180

  • sgARCANG270

  • sgARCANG90

  • sgARCANGBOTTOM

  • sgARCANGLEFT

  • sgARCANGRIGHT

  • sgARCANGTOP

  • sgDIAMETER

  • sgDISTANCE

  • sgSAMELENGTH

  • sgOFFSETEDGE

  • sgSNAPANGLE

  • sgSNAPGRID

  • sgSNAPLENGTH

  • sgUSEEDGE

  • sgALONGZPOINTS3D

  • sgALONGZ3D

  • sgCOLINEAR

  • sgCORADIAL

  • sgPERPENDICULAR

  • sgPARALLEL

  • sgTANGENT

  • sgCONCENTRIC

  • sgCOINCIDENT

  • sgSYMMETRIC

  • sgATMIDDLE

  • sgATINTERSECT

  • sgATPIERCE

  • sgFIXED

  • sgANGLE

  • sgARCANG180

  • sgARCANG270

  • sgARCANG90

  • sgARCANGBOTTOM

  • sgARCANGLEFT

  • sgARCANGRIGHT

  • sgARCANGTOP

  • sgDIAMETER

  • sgDISTANCE

  • sgSAMELENGTH

  • sgOFFSETEDGE

  • sgSNAPANGLE

  • sgSNAPGRID

  • sgSNAPLENGTH

  • sgUSEEDGE

NOTE: Although SolidWorks 2006 and later accepts the constraints shown in the first column, you are encouraged to use the constraints shown in the second column.

 

See Also

Availability

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

 
*Email:  
Subject:   Feedback on Help Topics
Page:   SketchConstraintsDel Method (IModelDoc2)
*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) 2012 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.