Hide Table of Contents
InsertPattern Method (IDimXpertPart)

Inserts a linked, manual, or collection pattern using the selected faces.

.NET Syntax

Visual Basic (Declaration) 
Function InsertPattern( _
   ByVal Option As DimXpertDimensionOption, _
   ByVal PatternType As System.Integer, _
   ByVal FindAll As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IDimXpertPart
Dim Option As DimXpertDimensionOption
Dim PatternType As System.Integer
Dim FindAll As System.Boolean
Dim value As System.Boolean
 
value = instance.InsertPattern(Option, PatternType, FindAll)
C# 
System.bool InsertPattern( 
   DimXpertDimensionOption Option,
   System.int PatternType,
   System.bool FindAll
)
C++/CLI 
System.bool InsertPattern( 
&   DimXpertDimensionOption^ Option,
&   System.int PatternType,
&   System.bool FindAll
) 

Parameters

Option
IDimXpertDimensionOption
PatternType

0 = linked

1 = manual

2 = collection

FindAll
True to select similar faces for PatternTypes 1 and 2, false to not. (see Remarks)

Return Value

False

Example

Remarks

Before calling this method:

  1. Call IDimXpertPart::GetDimOption to get an instance of IDimXpertDimensionOption.
  2. Set IDimXpertDimensionOption::FeatureSelectorOptions to swDimXpertFeatureSelectorOption_Default to enable the FindAll property. If IDimXpertDimensionOption::FeatureSelectorOptions is set to anything other than the default, the FindAll setting is not in force.)
  3. Populate Option with the instance of IDimXpertDimensionOption.
  4. Select the features according to PatternType:
    1. If PatternType is linked, then select one feature to automatically select all features of the pattern.
    2. If PatternType is manual or collection and FindAll is set to true, then select one feature to automatically select all similar features on the face.
  5. Set the selection mark for each selected feature to a unique value that is greater than 50.
 

See Also

Availability

SOLIDWORKS 2011 FCS, Revision Number 19.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:   InsertPattern Method (IDimXpertPart)
*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.