(2025-10-11, 23:25)Peter Blomberg Wrote: This is the preferred programmatic practice. Easier to detect errors and to troubleshoot.
Your equations contained a few typos. The conversion factors seem to be mostly ok.
The LDU is defined as 2.5 LDU/mm.
1 mm = 2.5 LDU
1 cm = 10 mm = 25 LDU
1 dm = 100 mm = 250 LDU
1 m = 1000 mm = 2500 LDU
100 µm = 0.1 mm = 0.25 LDU
10 µm = 0.01 mm = 0.025 LDU
1 µm = 0.001 mm = 0.0025 LDU
One international inch is defined as 25.4 mm.
1 in = 25.4 mm = 63.5 LDU
Assuming one foot is twelve inches:
1 ft = 12 in = 304.8 mm = 762 LDU
The current documentation says 1 LDU is approximated with 1/64 in. I guess using 63.5 as a conversion factor is more accurate.
An explanation of this difference should probably be in the documentation overhaul if it is not already there.