Hide Table of Contents
ModifyInstance Method (ILocalLinearPatternFeatureData)

Modifies the specified pattern instance with the specified distances in Directions 1 and 2 in this linear component pattern feature.

.NET Syntax

Visual Basic (Declaration) 
Function ModifyInstance( _
   ByVal Instance As System.Integer, _
   ByVal D1Distance As System.Double, _
   ByVal IsD1OffsetFromNominal As System.Boolean, _
   ByVal D2Distance As System.Double, _
   ByVal IsD2OffsetFromNominal As System.Boolean _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As ILocalLinearPatternFeatureData
Dim Instance As System.Integer
Dim D1Distance As System.Double
Dim IsD1OffsetFromNominal As System.Boolean
Dim D2Distance As System.Double
Dim IsD2OffsetFromNominal As System.Boolean
Dim value As System.Boolean
 
value = instance.ModifyInstance(Instance, D1Distance, IsD1OffsetFromNominal, D2Distance, IsD2OffsetFromNominal)
C# 
System.bool ModifyInstance( 
   System.int Instance,
   System.double D1Distance,
   System.bool IsD1OffsetFromNominal,
   System.double D2Distance,
   System.bool IsD2OffsetFromNominal
)
C++/CLI 
System.bool ModifyInstance( 
&   System.int Instance,
&   System.double D1Distance,
&   System.bool IsD1OffsetFromNominal,
&   System.double D2Distance,
&   System.bool IsD2OffsetFromNominal
) 

Parameters

Instance
Pattern instance number (see Remarks)
D1Distance
Distance from the pattern seed in Direction 1
IsD1OffsetFromNominal
True if D1Distance is the offset from the nominal position of Instance, false if not
D2Distance
Distance from the pattern seed in Direction 2
IsD2OffsetFromNominal
True if D2Distance is the offset from the nominal position of Instance, false if not

Return Value

True if the pattern instance is modified successfully, false if not

Remarks

To calculate Instance:

  1. Ensure that ILocalLinearPatternFeatureData::D2PatternSeedOnly is set to false.
  2. Calculate:

      For a bi-directional pattern:

           I = n2 * (i - 1) + (j - 1)

      For a uni-directional pattern:

           I = i - 1

      where:

  • I = pattern instance number
  • n2 = number of instances in Direction 2
  • i = index for Direction 1
  • j = index for Direction 2

In the pattern's PropertyManager, find n2 in the Direction 2 > Spacing and Instances > Number of instances field and find [i,j] in the Modified Instances section.

 

See Also

Availability

SOLIDWORKS 2021 FCS, Revision Number 29


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:   ModifyInstance Method (ILocalLinearPatternFeatureData)
*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) 2024 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.