Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retrieve the bounding box of the currently loaded GCode

See original GitHub issue

Issue Description

I’m working on #32 (more like a modern widget port of in React) and I’m facing a problem calculating the area that the probing should commence. I currently can’t see any easy way to get the bounding box of the currently loaded GCode (xmin, xmax, ymin, ymax). They are calculated in but I’ve got no way of extracting that data from my widget - pubsub used in can’t be used by a widget, as the pubsub from what I understand is process-local and can’t be accessed by an external widget (so I’d have to integrate my widget in CNCjs, which might not be of your liking).

Is there something I’m missing? Can I interact with the pubsub API as a mounted widget (like the boilerplate one)? Maybe I should open a PR exposing this data about the gcode in the gcode:load event?

EDIT: Repo: - the README is irrelevant for the time being

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

MitchBradleycommented, Aug 2, 2021

Look at the commit history…

dzervascommented, Aug 1, 2021

Yikes, the ol’ maintenance problem… Is the project “halted” in terms of maintenance?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Traverse bounding box of current GCode program #235 - GitHub
A customer has requested the ability to press a button and have the machine physically move through the bounding box around the extremities ......
Read more >
False "Object does not fit into print volume" warning from ...
Open Octoprint web UI · Go to Settings -> Printer Profiles · Find active profile, click on the pen icon next to it...
Read more >
G-Code Ripper - Scorch Works
Changed so G-Code Ripper does not try to load a file on startup. Changes in Version 0.19 ... Bounding box now displays when...
Read more >
"Object doesn't fit print volume" after FW upgrade - Get Help
Your printer profile lacks a custom bounding box, as expected. So if your GCODE contains moves outside of the (0,0,0)x(250,220,200) print volume ...
Read more >
GCode dictionary | Duet3D Documentation
It's usually a bad idea to put a non-zero Z value in as well unless the tools are loaded and unloaded by some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found