Extended modules > 3D Documenation > Create 3D documentation > General tolerances
  
General tolerances
The REGISTER-GENERAL-TOLERANCE-SET function
The REGISTER-GENERAL-TOLERANCE-SET function is used to register sets of general tolerances. In 3D Documentation, these can be assigned to a part or assembly as an attribute that is saved with it. Using this function, you can also specify which general tolerance set is to be the default set upon start up of 3D Documentation.
Syntax
(DOC3D:REGISTER-GENERAL-TOLERANCE-SET "string (name of set)"
:LENGTH '((d1 t1) (d2 t2) ...)
:RADIUS '((d1 t1) (d2 t2) ...)
:GLOBAL_DEFAULT t or nil)
Options
Name of set must be given, as a string within double quotes, immediately after the function.
:LENGTH lists pairs of numbers that determine the tolerance values used over a range of dimension values. The first value d1 indicates the maximal nominal dimension value up to which the second value t1 is used as its plus/minus tolerance. Dimension values greater than the last range value, say dz, also take the last tolerance value, tz.
In the example below, (1.0 0.01) means that all dimensions having values up to 1.0 will have a +/- tolerance of 0.01. Likewise, (1000 10.0) means that all dimension values up to 1000 take a +/- tolerance of 10.0; but since it is the last pair of values, it implies that all dimension values over 1000 also take a +/- tolerance of 10.0.
A :LENGTH list is required, and its tolerance definition applies to all types of distance dimensions and also diameter dimensions.
:RADIUS is the same as above, but is used for radius dimensions having general tolerance. If no :RADIUS list is defined, the :LENGTH list above is used in its place.
:GLOBAL_DEFAULT specifies whether the set is to be used as the default general tolerance when 3D Documentation is started.
Example
(doc3d:register-general-tolerance-set "Tols Ex.1"
:global_default t
:length '((1.0 0.01) (50.0 0.5) (100.0 1.0) (1000 10.0))
:radius '((10.0 0.1) (100.0 1.0)))
(doc3d:register-general-tolerance-set "Tols Ex.2"
:global_default nil
:length '((0.0 0.1)))