garethky / glowforge-colorific-fusion360-post

29 stars 5 forks source link

Free version of Fusion360 now shows travel moves in generated SVG #2

Closed johnboiles closed 4 years ago

johnboiles commented 4 years ago

Within the last week, it appears that something has changed (probably a new version of Fusion360) which causes this post-processor to now include travel moves. Heres an exported SVG from today

image

And here's the exact same Fusion Setup generated on Sep 29 (5 days ago):

image

I might be able to look into this but @garethky if you have any immediate thoughts I'd appreciate your guidance!

johnboiles commented 4 years ago

Here's another design, for example

image image

johnboiles commented 4 years ago

Based on a quick look at the code, it seems like Fusion must be passing in MOVEMENT_CUTTING, MOVEMENT_REDUCED, or MOVEMENT_FINISH_CUTTING as the movement type for travels, otherwise those lines wouldn't render. So seems very possible this is a Fusion360 bug.

johnboiles commented 4 years ago

I exported the same setup with my GRBL post-processor and I see this exported in the file: 🤦

(When using Fusion 360 for Personal Use, the feedrate of rapid moves is reduced to match the feedrate of cutting moves, which can increase machining time. Unrestricted rapid moves are available with a Fusion 360 Subscription.)
(Operation 1 of 3 : 2D Profile2)

So Autodesk has intentionally made this annoying :(

garethky commented 4 years ago

AutoDesk said they would remove rapid moves from the unpaid version of Fusion 360. So its likely this has broken the post processor. Possibly the laser off state can be detected by looking for another command (laser off/laser on) and tracking that state to detect travel moves. I'll need to do a deeper investigation of the new output to see.

johnboiles commented 4 years ago

Yeah that's super annoying. I guess If they differentiated which moves were travel moves vs which moves were cutting moves then it would be trivial for post-processors to just use a rapid move for any travel move.

Rapid moves seems like such a weird feature to limit -- post-processors could hack around it anyways (by doing things like using rapid moves above a certain Z height or like you say, using rapid moves when the tool is off).

Also I made a forum post about it: https://forums.autodesk.com/t5/fusion-360-manufacture/removal-of-rapid-moves-breaks-glowforge-post-processor/m-p/9783371

garethky commented 4 years ago

They do set the laser to off/on so we can detect what is meant to be cut vs what is not a cutting move that way. This change fixes the issue in the test suite and in the simple tests I tried in the new version of Fusion 360: https://github.com/garethky/glowforge-colorific-fusion360-post/commit/43634dc87e5477fef40ad90f719ca24724c32eb3

Master branch has been updated with the fix. Please test and verify that things are working as before.

johnboiles commented 4 years ago

You're a champ @garethky! I'll try it out

johnboiles commented 4 years ago

Works for me locally!

image

I had to restart Fusion360 after replacing the file in Assets/CAMPosts before it would take effect in my Cloud Posts. It worked right away in my 'Personal Posts' (~/Autodesk/Fusion\ 360\ CAM/Posts)

johnboiles commented 4 years ago

Thanks again for the quick fix!

garethky commented 4 years ago

Thanks for the bug report!