Hide Table of Contents
SetFeatureScope Method (ILinearPatternFeatureData)

Sets the feature scope, whether to autoselect the affected bodies, and the affected bodies in this linear pattern feature.

.NET Syntax

Visual Basic (Declaration) 
Function SetFeatureScope( _
   ByVal FeatureScopeOption As System.Boolean, _
   ByVal AutoSelectBodies As System.Boolean, _
   ByVal Bodies As System.Object _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ILinearPatternFeatureData
Dim FeatureScopeOption As System.Boolean
Dim AutoSelectBodies As System.Boolean
Dim Bodies As System.Object
Dim value As System.Boolean
 
value = instance.SetFeatureScope(FeatureScopeOption, AutoSelectBodies, Bodies)
C# 
System.bool SetFeatureScope( 
   System.bool FeatureScopeOption,
   System.bool AutoSelectBodies,
   System.object Bodies
)
C++/CLI 
System.bool SetFeatureScope( 
&   System.bool FeatureScopeOption,
&   System.bool AutoSelectBodies,
&   System.Object^ Bodies
) 

Parameters

FeatureScopeOption
True to specify affected bodies, false to apply the pattern to all bodies every time the feature regenerates (see Remarks)
AutoSelectBodies
True to automatically select all bodies intersected by this pattern feature, false to specify affected bodies (see Remarks)
Bodies
Array of bodies to be affected; valid only if FeatureScopeOption is true and AutoSelectBodies is false

Return Value

True if feature scope set successfully, false if not (see Remarks)

Remarks

If this method returns false, then default values for FeatureScopeOption and AutoSelectBodies are set. A subsequent call to IFeatureManager::CreateFeature creates the feature with a FeatureScopeOption of true and an AutoSelectBodies of true.

After calling IFeature::ModifyDefinition, call IFeature::GetErrorCode2 to determine what's wrong and then take necessary remedial action.

For more information, see the Linear Patterns and the Linear Pattern PropertyManager topic in the SOLIDWORKS user-interface help. 

 

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:   SetFeatureScope Method (ILinearPatternFeatureData)
*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) 2020 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.