CAD transforms - read in feet and fractional inches
Hi @stephen_l,
Is it possible to have this read in fractions.
That is, go from 1.2187'
to 1' - 2 5/8"
?
Perhaps there's a preference where you can set the tolerance it measures by, like by 1/32
, or 1/16
, 1/8
, etc,
Comments
Unit conversion to strings rely on blender's api (bpy.utils.units.to_string) and depends on "separate units" in scene units configuration. Unfortunately as far as i know, support for fractions is not implemented.
Any known robust available algo ?
Haha... :)
not sure how useful it would be.
https://chatgpt.com/share/0897babd-6b9f-48fd-9a98-ce11bc1f1de1
Wow, we are in another world.
https://chatgpt.com/share/0897babd-6b9f-48fd-9a98-ce11bc1f1de1
@stephen_l would it be possible to implement something like this into the next version? or do you take pull requests?
Would rather implement in Units.to_string handling unit display, but will definitely take a look. Units.from_string should handle fraction input (as it does take care of math expressions) but may require some tricks like 2 + 3/4 in - perhaps even require 2 + (3/4) in (?).