From 2f0500a14b56f8b4fbcf5b8e58b2d2f187bd5130 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sun, 13 Oct 2024 08:48:21 -0500 Subject: [PATCH] have dimensions like `0 7/8"` read like `7/8"` --- src/bonsai/bonsai/bim/module/drawing/helper.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/bonsai/bonsai/bim/module/drawing/helper.py b/src/bonsai/bonsai/bim/module/drawing/helper.py index 5290e220b5..39b2250371 100644 --- a/src/bonsai/bonsai/bim/module/drawing/helper.py +++ b/src/bonsai/bonsai/bim/module/drawing/helper.py @@ -211,9 +211,15 @@ def format_distance( if not feet and value < 0: tx_dist += "-" if add_inches: - tx_dist += str(inches) + if feet == 0 and inches == 0: + pass + else: + tx_dist += str(inches) if add_inches and frac: - tx_dist += " " + if feet == 0 and inches == 0: + pass + else: + tx_dist += " " if frac: tx_dist += str(frac) + "/" + str(base) if add_inches or frac: