Hide Table of Contents
CheckFeatureUse Method (ISketch)

Checks to see if this sketch is valid for use in creating a specified feature.

.NET Syntax

Visual Basic (Declaration) 
Function CheckFeatureUse( _
   ByVal FeatureType As System.Integer, _
   ByRef OpenCount As System.Integer, _
   ByRef ClosedCount As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As ISketch
Dim FeatureType As System.Integer
Dim OpenCount As System.Integer
Dim ClosedCount As System.Integer
Dim value As System.Integer
 
value = instance.CheckFeatureUse(FeatureType, OpenCount, ClosedCount)
C# 
System.int CheckFeatureUse( 
   System.int FeatureType,
   out System.int OpenCount,
   out System.int ClosedCount
)
C++/CLI 
System.int CheckFeatureUse( 
&   System.int FeatureType,
&   [Out] System.int OpenCount,
&   [Out] System.int ClosedCount
) 

Parameters

FeatureType

Determine if this type of feature can be created as defined in swSketchCheckFeatureProfileUsage_e

OpenCount

Number of open contours found in this sketch

ClosedCount

Number of closed contours found in this sketch

Return Value

swSketchCheckFeatureStatus_OK if this sketch can be used to create the specified feature; see swSketchCheckFeatureStatus_e for possible failure values

Example

Remarks

This method is equivalent to the SOLIDWORKS interactive tool Check Sketch for Feature Usage. See the SOLIDWORKS Help for details.

The OpenCount and ClosedCount arguments are output values. If this method returns swSketchCheckFeatureStatus_OK, meaning that the sketch can be used to create the specified feature, then these two arguments contain useful information. If this method returns something else, then OpenCount and ClosedCount both return 0.

If the featureType value is not valid, this method returns  swSketchCheckFeatureStatus_UnknownError.

 

See Also

Availability

SOLIDWORKS 2000 SP03, Revision Number 8.3


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:   CheckFeatureUse Method (ISketch)
*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) 2018 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.