nunorvoliveira / snapmaker-2.0

Snapmaker 2.0 (A350, A250, A150) tool libraries, machine profiles, post processor...
GNU General Public License v3.0
45 stars 10 forks source link

Bring in Header Info as Part of the Post Process #4

Open calebmcmains opened 1 year ago

calebmcmains commented 1 year ago

Is your feature request related to a problem? Please describe. I noticed that the .cnc files given by Fusion 360 using the Post Process there are a few things missing that are in the .cnc file provided by the Luban Software when it creates a .cnc file.

While it is not necessarily a problem it does open up an opportunity for the Fusion 360 Post Process to get closer to being similar to how the makers of Snapmaker have designed G-code files for their CNC machine. This is particularly helpful when still using the Luban software to preview G-code. Also using the software to send it to the Machine.

Describe the solution you'd like The solutions would be to take the exported .cnc files provided by Luban Software and working the format it into the Fusion 360 Post Process. Luban provides a set of "header" comments (example below), could this data be worked into the Fusion 360 Post Process? For example what Luban calls "Work Speed" Fusion 360 calls "Cutting Feedrate".

;Header Start
;header_type: cnc
;tool_head: standardCNCToolheadForSM2
;machine: A350
;renderMethod: line
;file_total_lines: 751
;estimated_time(s): 403.288
;is_rotate: false
;diameter: 35
;max_x(mm): 147.32999999999998
;max_y(mm): 73.634
;max_z(mm): 80
;max_b(mm): 0
;min_x(mm): 9.920000000000002
;min_y(mm): 9.864
;min_b(mm): 0
;min_z(mm): -2
;work_speed(mm/minute): 300
;jog_speed(mm/minute): 1500
;power(%): 0
;work_size_x: 320
;work_size_y: 350
;origin: bottom-left
;thumbnail: data:image/png;base64,iVBORw0KGgoA...
;Header End
calebmcmains commented 1 year ago

Also I have to say this is AWESOME!! Regardless of my suggestion, having this has been so cool! You have had to put so much work into this repo! Great job and thank you for making it available to people like me who want to breakout of the Luban software and use Fusion 360 for my CNC stuff.