In general the tolerance values are stored in the DIMSTYLE entity, but can be overridden for each DIMENSION entity, you can get them by the DimstyleOverride()
class as shown in the following example:
import ezdxf
from ezdxf.entities import DimStyleOverride
doc = ezdxf.readfile('your.dxf')
msp = doc.modelspace()
for dimension in msp.query('DIMENSION'):
dimstyle_override = DimStyleOverride(dimension)
dimtol = dimstyle_override['dimtol']
if dimtol:
print(f'{str(dimension)} has tolerance values:')
dimtp = dimstyle_override['dimtp']
dimtm = dimstyle_override['dimtm']
print(f'Upper tolerance: {dimtp}')
print(f'Lower tolerance: {dimtm}')
This is a very advanced DXF topic with very little documentation from the DXF creator, so you are on your own to find out the meaning of all the dim...
attributes. Here you can see the result of my research, but no guarantee for the correctness of the information.