Had everything working fine but now when I try to open newer text files of Gcode I get this error.
I’m 'making the Gcode in 'numbers/excell and copying it into text edit where I double check it and rename it with a .nc Then head over to Ground control and open it. This was all working till a day ago. Is there some detail to the text file type that I’m missing? Any better text editors on Mac that don’t cost $100
I suspect it has something to do with the infuriating text edit on Mac but I just can’t figure out what is different between a file that opens fine and one that gets this error.
You might check that there isn’t a suffix which isn’t showing. In the Finder, highlight the file and cmd-I to ‘Get Info’ about the file and look to see that the file name ends with .nc (or .txt).
Hi all - I poked around in finder and nothing strange there. All files are plain text and .nc This was working a few days ago so I’ve taken a working code file and a non working one from today. “sunday test2” is the non working one - links here:
I’m working on a tiny manufacturing project cutting out rectangles with round corners so I had made some progress using a spread sheet to make all the repetitive code. Also was able to eliminate unnecessary machine movements this way. In the past I just selected a whole column in the spread sheet and copy/pasted that into text edit. Just kept doing that for all the different rectangles. So I might have changed something in the spread sheet with some hidden formatting? But of course I can’t see anything that’s different.
Anyway it does seem to be a line ending or hidden text file thing.
The file that doesn’t work contains the unicode character for “-” everywhere there is a “Z-” Replacing those with an UTF-8 “-” will make the file load correctly. Here’s a ‘fixed’ version: sunday-test-2-fix.nc (5.5 KB)
Awesome! that was it. I had a concatenated text string when I could have just had a negative number for the z value. Got rid of the “Z-” string and used “Z” and the neg number - works great now.
Also I’ll check out more on the invalid characters, Atom and Camotics