Joey de l'Arago
848b8e1398
Add try catch when fetching material diameter.
...
CURA-10183
2023-02-22 10:55:40 +01:00
Joey de l'Arago
ba63109d84
Catch error when loading gcode with more extruders than the current machine.
...
CURA-10183
2023-02-09 16:47:49 +01:00
Ghostkeeper
d778b539c2
Parse up to 16 extruders
...
CuraEngine supports up to 16, so we should allow at least that.
2022-03-11 10:13:44 +01:00
Ole Kröger
893da1ed38
Update plugins/GCodeReader/FlavorParser.py
...
Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2022-03-03 11:03:33 +01:00
Ole Kröger
0ff94c6150
Update plugins/GCodeReader/FlavorParser.py
...
Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2022-03-03 11:03:28 +01:00
Ole Kroeger
812bf2f4aa
use current filament diameter
2022-03-02 14:25:05 +01:00
Jaime van Kessel
ab2439f561
Fix first parameter of PositionOptional
2022-02-01 13:39:56 +01:00
Ghostkeeper
fd5b248296
Don't register a new layer if not extruding a line
...
We do retracts/unretracts on different heights sometimes, for instance after a pause. This would get seen as a new layer. It's quite safe to say that purely retracts and unretracts on a different height do not constitute a layer in a normal g-code file. There would be nothing to draw anyway.
Contributes to issue CURA-8522. Fixes #10282 .
2021-11-05 21:04:37 +01:00
luz paz
d68f375e38
Fix various typos
...
Found via `codespell -q 3 -S *.po,*.pot -L childs,initialy,lod,ned,te,slicable,sur,tutoriels,wont`
2021-09-07 11:33:54 -04:00
Ghostkeeper
6b5ea9086f
Fix spelling in documentation
...
Saw this and wanted to take it along blindly with whatever next modification I made to Cura. However I need to switch branches now so it's just going to be a rather useless commit I guess.
2021-08-23 14:40:57 +02:00
Jelle Spijker
2263969d5f
Updated message with message types
...
Contributes to CURA-8418
2021-07-28 08:45:42 +02:00
Ghostkeeper
db15bc84cf
Correct and consistent spelling of g-code
...
This spelling is in Ultimaker's style guide.
We use g-code, and capitalise the G if it's at the start of a sentence or header.
Pretty good score, considering there are literally thousands of user- or log-visible strings mentioning g-code across Cura.
2020-07-20 13:36:49 +02:00
Ghostkeeper
e7371bd741
Use extruderList rather than deprecated extruders property
...
Done during Turbo Testing and Tooling.
2020-05-29 17:02:22 +02:00
Nino van Hooff
89f0970a88
Remove trailing whitespace from Python files
2020-05-29 14:30:33 +02:00
Nino van Hooff
40327c4259
Convert doxygen to rst for GcodeReader, GcodeGzReader/Writer,
...
GCodeProfileReader
2020-05-08 15:58:51 +02:00
Tim Kuipers
9bcae15d39
lil: optimize parsing gcode arg letter
...
CURA-7066
2020-02-24 14:56:06 +01:00
Tim Kuipers
efafc37e49
fix E-values after G92 when parsing gcode
...
CURA-7066
2020-02-24 14:55:58 +01:00
Tim Kuipers
5653c8c9ae
Avoid showing infinitely wide lines in gcode
...
lines less than zero wide are displayed as very wide; prevent negative extrusion lines from being generated in the first place
CURA-7066
2020-02-24 14:55:42 +01:00
Ghostkeeper
341e149d0e
Ignore g-code lines with syntax errors
...
Discovered while working on CURA-7145.
2020-02-05 12:52:54 +01:00
Lipu Fei
46a15762aa
Add doc for the need of filename in processGCodeStream()
2019-09-05 14:19:48 +02:00
Lipu Fei
0524796145
Do not trigger slicing if there's no slicable object
...
CURA-6604
2019-09-03 20:01:41 +02:00
Lipu Fei
09dc209956
Fix regex in FlavorParser
2019-09-03 20:01:41 +02:00
Lipu Fei
743b8cd156
Fix multi extrusion gcode loading
...
CURA-6604
2019-08-30 15:53:25 +02:00
Lipu Fei
79f11286a6
Fix typing
...
CURA-6643
2019-08-27 14:42:31 +02:00
Lipu Fei
946b2b943e
F5 reloads gcode file
...
CURA-6643
2019-08-27 14:42:31 +02:00
Diego Prado Gesto
11e86512cb
Include the prime tower to the time calculations
...
Contributes to CURA-6509.
2019-05-06 14:33:24 +02:00
Ghostkeeper
15706b7696
Fix colour of prime tower
2019-05-06 10:26:53 +02:00
Lipu Fei
dd19d7d1a9
Fix typing
2019-04-03 08:25:17 +00:00
Ghostkeeper
371585a0ba
Fix error if layer number ends up out of range
...
It normally doesn't go out of range, but some defensive coding just in case it does. And to fix a typing error of course.
2019-01-28 15:54:34 +01:00
Jaime van Kessel
3f7c922734
Add missing type for g-code reader
2018-12-17 17:37:12 +01:00
Aleksei S
22db3cb32b
Show retraction for G92 command
...
CURA-5769
2018-10-19 13:18:42 +02:00
alekseisasin
a7be605b9d
Typing error in CI CURA-5769
2018-10-17 09:50:22 +02:00
Aleksei S
20fa7f4dd8
Display retractions lines for the loaded Gcode files
...
CURA-5769
2018-10-16 16:47:05 +02:00
Jaime van Kessel
5c6c299b27
Cleanup extruder manager
...
Few more unused functions removed & simplified.
It also fixes a few more typing issues that I encountered.
2018-09-07 17:06:18 +02:00
Ian Paschal
75d5828f5f
Merge branch 'master' into fix_tests_cura_engine_backend
2018-07-06 09:48:07 +02:00
Ian Paschal
2f8debc985
Fixes for FlavorParser
2018-07-05 15:45:48 +02:00
Diego Prado Gesto
c738f306fb
Fix style in some components
2018-07-05 14:35:12 +02:00
Ghostkeeper
797d05947c
Fix type errors
...
Contributes to issue CURA-5330.
2018-06-15 15:20:41 +02:00
Ghostkeeper
9821793b46
Don't override boundingbox of SceneNode
...
Whatever was intended here, it didn't work. Because when a method is called it is called on the class of the object. Methods are not attributes of instances but attributes of the class. The attribute of the class was never changed, so this had no effect.
Contributes to issue CURA-5330.
2018-06-15 15:16:55 +02:00
Diego Prado Gesto
0a21ce44b0
CURA-5330 Fix code style and typing in GCodeReader plugin
2018-06-13 17:36:04 +02:00
Diego Prado Gesto
8ad409ff55
Merge branch 'master' into WIP_improve_initialization
2018-05-14 15:15:02 +02:00
Diego Prado Gesto
43657010ba
CURA-5164 The Preferences is not a singleton class anymore since in some point
...
several instances need to be created.
- In the ThreeMFWorkspaceReader we need to create some temporal
instances of Preferences that makes it not singleton anymore.
- The current preferences are kept in the Application class and so all
the calls to the preferences are changed to get the preferences from
Application.
- The method getInstance in Preferences is kept as deprecated since some
external plugins.
2018-05-11 08:50:42 +02:00
Ruben D
6772dc9ea7
Show g-code in position it would print
...
Rather than trying to retrieve from the g-code what the position was that it was originally sliced. It was trying to find whether it was sliced for a printer with center_is_zero by seeing if there are any negative coordinates in the g-code, which was faulty. Now we don't even try to do that any more. We just find where the print would end up if it were printed with the currently selected printer.
Contributes to issue CURA-5068 and fixes #3634 .
2018-05-09 13:25:41 +02:00
Ruben D
fb2a8c8d57
Fix typing of paths
...
There is still something up with the E values. Most probably an actual bug. We'll investigate.
Contributes to issue CURA-5330.
2018-05-09 13:25:41 +02:00
Ruben D
af06096e08
Add typing
...
As per code style.
Contributes to issue CURA-5330.
2018-05-09 13:25:41 +02:00
Diego Prado Gesto
f328926be3
CURA-5275 Add the end point of the previous path also when there is a
...
change in the tool.
2018-04-23 14:24:25 +02:00
Diego Prado Gesto
a3dc94aedd
Merge branch 'mb-fix-gcode-reader-start-position' of https://github.com/smartavionics/Cura into smartavionics-mb-fix-gcode-reader-start-position
2018-04-23 14:11:07 +02:00
Lipu Fei
4b27d036bc
Merge pull request #3659 from Ultimaker/fix_gcode_line_width
...
Adjust filament diameter to calculate line width in the gcode parser
2018-04-13 10:38:47 +02:00
Diego Prado Gesto
03ec123c3c
Use the correct filament diameter to calculate line width in the gcode
...
parser.
2018-04-12 11:00:43 +02:00
Mark Burton
da1790fd37
Append a \n to each saved line of gcode otherwise the whole file ends up as one line!
2018-04-11 17:08:55 +01:00