Hide Table of Contents
SetFrameValues2 Method (IGtol)

Sets the geometric tolerance values and datum references in the specified frame of this GTol symbol.

.NET Syntax

Visual Basic (Declaration) 
Function SetFrameValues2( _
   ByVal FrameNumber As System.Short, _
   ByVal Tol1 As System.String, _
   ByVal Tol2 As System.String, _
   ByVal Datum1 As System.String, _
   ByVal Datum2 As System.String, _
   ByVal Datum3 As System.String _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IGtol
Dim FrameNumber As System.Short
Dim Tol1 As System.String
Dim Tol2 As System.String
Dim Datum1 As System.String
Dim Datum2 As System.String
Dim Datum3 As System.String
Dim value As System.Boolean
 
value = instance.SetFrameValues2(FrameNumber, Tol1, Tol2, Datum1, Datum2, Datum3)
C# 
System.bool SetFrameValues2( 
   System.short FrameNumber,
   System.string Tol1,
   System.string Tol2,
   System.string Datum1,
   System.string Datum2,
   System.string Datum3
)
C++/CLI 
System.bool SetFrameValues2( 
&   System.short FrameNumber,
&   System.String^ Tol1,
&   System.String^ Tol2,
&   System.String^ Datum1,
&   System.String^ Datum2,
&   System.String^ Datum3
) 

Parameters

FrameNumber
Symbol frame number; 1 for first frame (see Remarks)
Tol1
Tolerance 1 value
Tol2
Tolerance 2 value
Datum1
Primary datum with material conditions (see Remarks)
Datum2
Secondary datum with material conditions (see Remarks)
Datum3
Tertiary datum with material conditions (see Remarks)

Return Value

True if frame values are set, false if not

Example

Remarks

Before calling this method, call:

Geometric tolerance and material condition symbols are defined in C:\ProgramData\SolidWorks\SolidWorks 20nn\lang\english\gtol.sym. Inspect this file as you specify Datum1, Datum2, and Datum3 in <LibraryName-SymbolName> format.

For example, for datum tags A, B, and C:

   bRet = aGTol.SetFrameValues2(1, "0.2", "", "B-A-C<MOD-MMC>", "B<MOD-MMC>-C<MOD-LMC>", "C<MOD-MMC>-A")

sets the first symbol frame of this GTol with:

  • Tolerance 1 = 0.2
  • Primary datum = B-A-C<MOD-MMC>
  • Secondary datum = B<MOD-MMC>-C<MOD-LMC>
  • Teritiary datum = C<MOD-MMC>-A
 

See Also

Availability

SOLIDWORKS 2016 FCS, Revision Number 24.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:   SetFrameValues2 Method (IGtol)
*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) 2017 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.