Hide Table of Contents
SetFont Method (IDimensionTolerance)

Sets the tolerance font values.

.NET Syntax

Visual Basic (Declaration) 
Function SetFont( _
   ByVal UseDimension As System.Boolean, _
   ByVal UseScale As System.Boolean, _
   ByVal Value As System.Double _
) As System.Boolean
Visual Basic (Usage) 
Dim instance As IDimensionTolerance
Dim UseDimension As System.Boolean
Dim UseScale As System.Boolean
Dim Value As System.Double
Dim value As System.Boolean
 
value = instance.SetFont(UseDimension, UseScale, Value)
C# 
System.bool SetFont( 
   System.bool UseDimension,
   System.bool UseScale,
   System.double Value
)
C++/CLI 
System.bool SetFont( 
&   System.bool UseDimension,
&   System.bool UseScale,
&   System.double Value
) 

Parameters

UseDimension
True if the tolerance font should be the same size as the dimension font, false if not
UseScale
True if the tolerance font size should be scaled based on the dimension font size, false if the tolerance font size is an absolute height value
Value
Scale ratio if UseScale is true or height value if UseScale is false

Return Value

True if the tolerance font is set, false if not

Remarks

If UseDimension is...

Then...

True

  • The other arguments are ignored.

  • UseScale is True.

  • Value is 1.0.  

false

UseScale determines how Value is interpreted.

If UseScale is...

Then Value is assumed to be the...

True

scale value to use, and the height value is not changed.

false

height value to use, and the scale value is not changed.

To get the tolerance font information, use IDimensionTolerance::GetFontUseDimension, IDimensionTolerance::GetFontUseScale, IDimensionTolerance::GetFontScale, and IDimensionTolerance::GetFontHeight.

 

This method deals with the tolerance font information, not the fit tolerance font information. To get or set fit tolerance information, use IDimensionTolerance::GetFitFontUseDimension, IDimensionTolerance::GetFitFontUseScale, IDimensionTolerance::GetFitFontScale, IDimensionTolerance::GetFitFontHeight, and IDimensionTolerance::SetFitFont.

 

To see the effects of changing the tolerance font information, use IModelDoc2::GraphicsRedraw2.

 

See Also

Availability

SOLIDWORKS 2006 FCS, Revision Number 14.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:   SetFont Method (IDimensionTolerance)
*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.