Hide Table of Contents
SetToleranceValue Method (IModeler)

Sets tolerances governing geometry output.

.NET Syntax

Visual Basic (Declaration) 
Function SetToleranceValue( _
   ByVal ToleranceID As System.Integer, _
   ByVal NewToleranceValue As System.Double _
) As System.Double
Visual Basic (Usage) 
Dim instance As IModeler
Dim ToleranceID As System.Integer
Dim NewToleranceValue As System.Double
Dim value As System.Double
value = instance.SetToleranceValue(ToleranceID, NewToleranceValue)
System.double SetToleranceValue( 
   System.int ToleranceID,
   System.double NewToleranceValue
System.double SetToleranceValue( 
&   System.int ToleranceID,
&   System.double NewToleranceValue



Type of tolerance you want to set as defined in swTolerances_e


New tolerance value in meters for the specified tolerance type

Return Value

Original value of the specified tolerance type


The default tolerance setting for 3D geometry output is 0.01 meters, while 2D geometry uses a 1e-4 dimensionless tolerance value. If your 3D trim curves are coming out too far from the surfaces they are trimming or are not close to the 2D trim curves, then you might want to tighten the tolerance. Set the tolerances before any extraction of geometry.

The tolerance values can be reset by other AddIns such as IGES. Make sure that they are set to your values when you need them. The tolerance settings only affect other AddIn applications. However, you should be careful to reset the tolerances so that other AddIn applications are not affected by your choice of tolerance.

The swUVCurveOutputTol tolerance is used during the extraction of UV (SP) trim curves. The IFace2::GetTrimCurves2 method is affected by this setting. This tolerance value represents a fraction of the characteristic small dimension of a face (the tolerance is dimensionless). For example, if you set the swUVCurveOutputTol tolerance value to 3e-6 and the smallest dimension of the face is 0.4 meters, then the largest deviation of the trim curve will be:

(0.4 x 3e-6) meters

For reference, the SolidWorks IGES processor lets you control the swUVCurveOutputTol tolerance setting in the user preferences area. The normal setting under IGES uses a tolerance of 1e-4, while the high setting changes this tolerance to 3e-6. The IGES setting does not affect your application. Higher tolerance settings can increase processing time and the size of any output results.


See Also


SolidWorks 2000 SP3, 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

Subject:   Feedback on Help Topics
Page:   SetToleranceValue Method (IModeler)
*   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:


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

Web Help Content Version: API Help (English only) 2013 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.