Hide Table of Contents
SketchAddConstraints Method (IModelDoc2)

Adds the specified constraint to the selected entities.

.NET Syntax

Visual Basic (Declaration) 
Sub SketchAddConstraints( _
   ByVal IdStr As System.String _
) 
Visual Basic (Usage) 
Dim instance As IModelDoc2
Dim IdStr As System.String
 
instance.SketchAddConstraints(IdStr)
C# 
void SketchAddConstraints( 
   System.string IdStr
)
C++/CLI 
void SketchAddConstraints( 
&   System.String^ IdStr
) 

Parameters

IdStr

Constraint (see Remarks)

Example

Remarks

SOLIDWORKS 2005 and earlier

SOLIDWORKS 2006 and later

  • sgHORIZONTAL (2D sketch)

  • sgHORIZONTAL (3D sketch)

  • sgHORIZPOINTS (2D sketch)

  • sgHORIZPOINTS (3D sketch)

  • sgVERTICAL (2D sketch)

  • sgVERTICAL (3D sketch)

  • sgVERTPOINTS (2D sketch)

  • sgVERTPOINTS (3D sketch)

  • 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

  • sgHORIZONTAL2D

  • sgALONGX3D

  • sgHORIZONTALPOINTS2D

  • sgALONGXPOINTS3D

  • sgVERTICAL2D

  • sgALONGY3D

  • sgVERTPOINTS2D

  • sgALONGYPOINTS3D

  • 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

  • sgMERGEPOINTS

 

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:   SketchAddConstraints 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) 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.