given the code below, how can I change the dimension units into inches. code:
import ezdxf
from ezdxf import units
doc = ezdxf.new('R2010', setup=True)
doc.units = units.IN
msp = doc.modelspace()
msp.add_line((0.0, 0.0),(0.0, 10.0))
dim = msp.add_linear_dim(
base=(5.0, 5.0),
p1=(0.0, 0.0),
p2=(0.0, 10.0),
dimstyle="EZDXF",
override={
"dimtfill": 1,
"dimtxt": 1,
},
angle=90
)
doc.saveas("dim_example.dxf")