TOL

Set the tolerance factor for generalization.

Parameters

Parameter number Description Values Optional
1 Tolerance in meters, or ? to display the current value Real number Yes

Without parameters, the command prompts for the value in the message bar. You can also digitize two points to assign the distance between them.

Examples

TOL=10

Set the tolerance factor to 10 m.

TOL=?

Display the current tolerance factor.

Notes

Enter the tolerance factor in meters. Its initial value is the generalization tolerance from the drawing file settings.

GEN and GEN_2D use the Douglas-Peucker algorithm. For each span of the entity, they calculate the distance of each intermediate vertex from the straight line through the span's ends, rather than from the segment joining the preceding and following vertices:

  • If any vertex is farther than TOL, retain the farthest vertex and split the span in two at that vertex.
  • If no intermediate vertex's distance from the straight line through the span's ends exceeds the linear tolerance, apply the angular tolerance TOL_ANG.

GEN measures distance in 3D space, including Z; GEN_2D measures only in the XY plane.

Command characteristics

Command type Real variable
Repeats automatically No
Menu option This command has no associated menu option
Toolbar This command has no associated toolbar button
Extension DigiNG.OrdenesStandard.dll
Implementation Native
Related variables TOL_ANG — angular generalization tolerance
Related commands GEN
GEN_2D
TOL_ANG
Internal name {57647E08-06CB-448b-BD9A-639C5008A176}