preview: draw stock outlines from (WORKPIECE,...) comments - #4476
Open
alex-pres wants to merge 1 commit into
Open
preview: draw stock outlines from (WORKPIECE,...) comments#4476alex-pres wants to merge 1 commit into
alex-pres wants to merge 1 commit into
Conversation
Contributor
Author
|
Instruction for Autodesk Fusion post-processor: edit .cps file add function Call it from |
Collaborator
|
Can you add the code from gemlin into qt5_grsphics too please. |
alex-pres
force-pushed
the
pr-gremlin-draw-workpiece
branch
from
August 27, 2026 08:18
9526a4f to
4a81b29
Compare
Contributor
Author
A (WORKPIECE,BOX|CYLINDER|TUBE,...) comment declares the stock the program is cut from; every preview host draws it as a translucent wireframe, toggled per host, and get_workpieces() hands a GUI the declared params and the outline in machine coordinates. Program extents are unchanged.
alex-pres
force-pushed
the
pr-gremlin-draw-workpiece
branch
from
August 27, 2026 09:55
4a81b29 to
2ad450b
Compare
Collaborator
|
Thank you. This looks useful. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Followup for #4429
A
(WORKPIECE,BOX|CYLINDER|TUBE,...)comment declares the stock the program is cut from; the preview draws it as a translucent wireframe, and get_workpieces() hands a GUI the declared params and the outline in machine coordinates. Extents unchanged.Supported formats:
If more than 1 specified, it is added to previous. As additional bonus,
get_workpieces()function is available for display GUI to create useful shortcuts (like travel to workpiece left side) and especially for probing of workpiece location on the table. Workpieces are rendered in current g-code coordinate system (G54, etc.) and auto-switch inch/mm like rest of gremlin code.What does it look like
