Hide Table of Contents
SetFitFont Method (IDimensionTolerance)

Sets the fit tolerance font values.

.NET Syntax

Visual Basic (Declaration) 
Function SetFitFont( _
   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.SetFitFont(UseDimension, UseScale, Value)
C# 
System.bool SetFitFont( 
   System.bool UseDimension,
   System.bool UseScale,
   System.double Value
)
C++/CLI 
System.bool SetFitFont( 
&   System.bool UseDimension,
&   System.bool UseScale,
&   System.double Value
) 

Parameters

UseDimension
True if the fit tolerance font should be the same size as the dimension font, false if not
UseScale
True if the fit tolerance font should be scaled based on the dimension font, false if the fit 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 fit tolerance font is set, false if not

Example

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...

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 fit tolerance font information, use IDimensionTolerance::GetFitFontUseDimension, IDimensionTolerance::GetFitFontUseScale, IDimensionTolerance::GetFitFontScale, and IDimensionTolerance::GetFitFontHeight.

 

This method deals with the fit tolerance font information, not the tolerance font information. To get or set tolerance information, use IDimensionTolerance::GetFontUseDimension, IDimensionTolerance::GetFontUseScale, IDimensionTolerance::GetFontScale, IDimensionTolerance::GetFontHeight, and IDimensionTolerance::SetFont.

To see the effects of changing the fit 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:   SetFitFont 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.