I have been getting random failures when generating labels.
It first started with threaded inserts, I was running:
gflabel pred -w=1 "{threaded_insert}\nM2x3mm"
which produced the error:
jmilton@JerimiahMacBook ~ % gflabel pred -w=1 "{threaded_insert}\nM2x3mm"
Rendering label with width: 1 u
Rendering line 1 ("{threaded_insert}")
Traceback (most recent call last):
File "/Users/jmilton/.asdf/installs/python/3.12.11/bin/gflabel", line 7, in <module>
sys.exit(run())
^^^^^
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/cli.py", line 371, in run
render_divided_label(
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/label.py", line 325, in render_divided_label
add(renderer.render(label, area_per_label))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/label.py", line 139, in render
self._do_multiline_render(
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/label.py", line 179, in _do_multiline_render
self._render_single_line(
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/label.py", line 264, in _render_single_line
rendered[frag] = frag.render(frag_available_y, area.X, self.opts)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/fragments.py", line 187, in render
return self.fn(height, maxsize, *self.args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/fragments.py", line 324, in _fragment_insert
fillet(line.vertices(), radius=0.2)
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/build123d/operations_generic.py", line 494, in fillet
new_wire = target.fillet_2d(radius, object_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/build123d/topology/one_d.py", line 2724, in fillet_2d
filleted_face = downcast(fillet_builder.Shape())
^^^^^^^^^^^^^^^^^^^^^^
OCP.OCP.Standard.Standard_Failure: BRep_API: command not done
jmilton@JerimiahMacBook ~ % gflabel pred -w=1 "{threaded_insert}\nM2x3mm"
Rendering label with width: 1 u
Rendering line 1 ("{threaded_insert}")
Rendering line 2 ("M2x3mm")
Using {'font_style': <FontStyle.REGULAR>, 'font_path': '/Users/jmilton/.asdf/installs/python/3.12.11/lib/python3.12/site-packages/gflabel/resources/OpenSans-Regular'}
Got scale: 1
Entry "{threaded_insert}
M2x3mm" calculated width = 19.9 (max 31.9)
Writing STEP label.step
This made me think I was doing something wrong or threaded inserts were broken, but then it magically started working as you can see above.
When I try and batch labels I'll get an error on either a threaded insert or a tapping bolt. I can usually try a few times to generate that single part and then retry to get a little further in my batch, but I have only gotten it to successfully run one time.
I have been getting random failures when generating labels.
It first started with threaded inserts, I was running:
gflabel pred -w=1 "{threaded_insert}\nM2x3mm"which produced the error:
This made me think I was doing something wrong or threaded inserts were broken, but then it magically started working as you can see above.
When I try and batch labels I'll get an error on either a threaded insert or a tapping bolt. I can usually try a few times to generate that single part and then retry to get a little further in my batch, but I have only gotten it to successfully run one time.