PMIGeometricValueTolerance Object Preview

Derived from: Base Object
Defined in namespace "adsk::fusion" and the header file is <Fusion/PMI/PMIGeometricValueTolerance.h>

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.

Description

Represents a tolerance value that can be associated with a PMIGeometricValue.

Methods

Name Description
classType Static function that all classes support that returns the type of the class as a string. The returned string matches the string returned by the objectType property. For example if you have a reference to an object and you want to check if it's a SketchLine you can use myObject.objectType == fusion.SketchLine.classType().
create Create a transient PMIGeometricValueTolerance object. The default value set is to not have tolerances (hasTolerances = false).
setDeviation Sets this object to have deviation tolerance with the specified upper and lower values.
setLimitsFitsLinear Sets this object to have hole/shaft fit tolerance displayed on one line. The object will also have updated upper and lower tolerance values (used for information only).
setLimitsFitsSizeLimits Sets this object to have hole/shaft fit tolerance displayed as size limits. The object will also have updated upper and lower tolerance values (used for information only). Displays the minimum and maximum values in parenthesis.
setLimitsFitsStacked Sets this object to have hole/shaft fit tolerance displayed as stacked lines. The object will also have updated upper and lower tolerance values (used for information only).
setLimitsFitsTolerance Sets this object to have hole/shaft fit tolerance displayed as tolerance values. The object will also have updated upper and lower tolerance values (used for information only). Displays the upper and lower tolerance values in parenthesis.
setLimitsLinear Sets this object to have limits linear tolerance with the specified minimum and maximum values. Displayed as values on one line.
setLimitsStacked Sets this object to have limits stacked tolerance with the specified minimum and maximum values. Displayed as stacked lines.
setMAX Sets this object to have MAX tolerance type. The tolerance is defined and displayed as MAX.
setMIN Sets this object to have MIN tolerance type. The tolerance is defined and displayed as MIN.
setSymmetric Sets this object to have symmetric tolerance with the specified value.

Properties

Name Description
hasLowerTolerance Gets whether there is a lower tolerance value set.
hasToleranceClass Gets whether there is a tolerance class set.
hasTolerances Gets and sets whether the tolerances are set or not on the object.
hasToleranceType Gets whether there is tolerance type set.
hasUpperTolerance Gets whether there is an upper tolerance value set.
isValid Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.
lowerTolerance Gets the lower tolerance value in cm. Returns 0 if there is no lower tolerance value set.
objectType This property is supported by all objects in the API and returns a string that contains the full name (namespace::objecttype) describing the type of the object.

It's often useful to use this in combination with the classType method to see if an object is a certain type. For example: if obj.objectType == adsk.core.Point3D.classType():
toleranceClassDeviation Gets the tolerance class deviation value. Returns empty string if there is no tolerance class deviation value set.
toleranceClassGrade Gets the tolerance class grade value. Returns empty string if there is no tolerance class grade value set.
toleranceType The tolerance type.
upperTolerance Gets the upper tolerance value in cm. Returns 0 if there is no upper tolerance value set.

Accessed From

PMIGeometricValue.tolerance, PMIGeometricValueTolerance.create, PMIHoleThreadNote.shaftTolerance, PMIHoleThreadNoteInput.shaftTolerance, PMIImportedDimension.shaftTolerance

Version

Introduced in version April 2026