80 Commits

Author SHA1 Message Date
Erwan MATHIEU
7ba48bfa97 Add the slicemetadata.json file into the makerbot file archive
CURA-12005
2024-07-10 13:13:26 +02:00
Dmitry Gribenchuk
8116df6c21
cleanup unused import and fix comment space 2023-12-13 20:10:28 +02:00
Remco Burema
0a079d9794 Account for setting-function value that evaluates to another setting-function.
part of CURA-9859
2022-12-23 18:05:28 +01:00
Casper Lamboo
1672cd639f
Merge pull request #13914 from Ultimaker/CURA-9808_UltiMaker
CURA 9808 UltiMaker
2022-11-29 16:36:07 +01:00
jspijker
f76f711790 Update mentions to UltiMaker
Contributes to CURA-9808
2022-11-28 14:11:21 +01:00
c.lamboo
be40920042 Fix cura crashing
`activeQualityDisplayNameMap` no longer returned a dict and could thus not be a pyqt property

Cura-9773
2022-11-28 13:14:47 +01:00
Joey de l'Arago
5ed572779d remove redundant properties in settings
CURA-9773
2022-11-28 12:44:20 +01:00
Joey de l'Arago
8dcccd941b Add dataclass for ActiveQuality. Move some logic out of MachineManager into ActiveQuality.
CURA-9793
2022-11-28 12:40:35 +01:00
c.lamboo
1ae8f2da62 Add quality display name with ufp files
Cura-9773
2022-11-25 16:12:44 +01:00
c.lamboo
e8f6786e97 Revert "Add quality type to ufp files"
This reverts commit 7e84082aff26195d82b8d3c9239dee863949c099.
2022-11-24 22:56:35 +01:00
c.lamboo
7e84082aff Add quality type to ufp files
Cura-9773
2022-11-24 13:55:31 +01:00
c.lamboo
efe3014d55 Merge branch '5.2' of github.com:Ultimaker/Cura into 5.2
# Conflicts:
#	plugins/UFPWriter/UFPWriter.py
2022-10-06 16:05:59 +02:00
c.lamboo
598e093b5e Revert "Flatten equation in UFP settings export"
This reverts commit ccf9a47f085ac66bf57ec04e99a04bd984770641.
2022-10-06 16:05:53 +02:00
c.lamboo
ccf9a47f08 Flatten equation in UFP settings export 2022-10-06 15:49:51 +02:00
Joey de l'Arago
04ff78c704
Merge pull request #13471 from Ultimaker/CURA-9719
Add intent and quality fields to slice metadata
2022-10-05 16:11:31 +02:00
Maël Kerbiriou
058824d2f4 UFPWriter: fix settings serialization 2022-10-04 23:35:15 +02:00
c.lamboo
a1a2784ef9 Add intent and quality fields to slice metadata
CURA-9719
2022-10-04 11:47:53 +02:00
Jaime van Kessel
4e785c3b61
Merge branch 'CURA-9224_approver_settings_json' of github.com:Ultimaker/Cura into CURA-9224_approver_settings_json 2022-09-13 13:36:49 +02:00
Jaime van Kessel
356da40dde
Remove unused function
CURA-9224
2022-09-13 13:36:28 +02:00
Jaime van Kessel
8dc2eaf783
Move CreateFlattendContainerInstance to InstanceContainer
It didn't really belong in the stack builder, as it's not a containerstack

CURA-9224
2022-09-13 13:35:37 +02:00
Jaime van Kessel
a27bf8f7ed
Update formatting
CURA-9224
2022-09-13 11:16:02 +02:00
Jaime van Kessel
aa28f8abfb
Remove unused import
CURA-9224
2022-09-13 11:15:04 +02:00
c.lamboo
880724d2e4 Add material information to ufp output
CURA-9224
2022-09-10 09:47:31 +02:00
joeydelarago
599fddd6dd Add all settitngs to the json.
Change default -> all_settings. This better reflects the purpose of the list.

CURA-9224
2022-09-05 10:43:21 +02:00
joeydelarago
ef36d3f6bd Refactoring
CURA-9224
2022-09-05 10:43:11 +02:00
joeydelarago
b1090728c0 Add settings changes
CURA-9224
2022-09-05 10:42:59 +02:00
joeydelarago
42c3eb0c64 Save settings to json file in .ufp
CURA-9224
2022-09-05 10:42:33 +02:00
Jaime van Kessel
50954552d2 Fix thumbnail creation
CURA-9120
2022-04-13 16:53:11 +02:00
Remco Burema
abe7c1bf7f
Search/replace Qt5->Qt6.
part of upgrading Qt to v6.2: CURA-8591
2021-12-28 14:46:02 +01:00
Ghostkeeper
515c7459d3
Catch EnvironmentError when writing to UFP files
This should result in a user-visible error message rather than a crashing application.

Fixes Sentry issue CURA-28E.
2021-06-07 14:34:26 +02:00
Ghostkeeper
9a65008952
Catch correct exceptions
To catch the exception of duplicate file types, catch only the exception that triggers at this, OPCError. To catch generic file writing errors, catch all of EnvironmentError, not just OSError.
2021-06-07 14:28:33 +02:00
Remco Burema
9144f38814
Fix wrong import. 2021-01-21 09:04:39 +01:00
Remco Burema
f4ef3b44e3
Properly retrieve snapshot (now made on slice).
Circumvents the snapshot/thumbnail not working when the focus is not on the main window, even if the thread is main. This was an issue when writing a file to Digital Factory becasue that workflow uses a modal window.

Thanks for the idea Jelle!
2021-01-21 08:55:45 +01:00
Remco Burema
4fc0612806
Make a snapshot on slice instead of write.
In some cases, UFP-writing is going to be done when the OpenGL-context is off the main window. This doesn't work. That unfortunately also goes for this commit, but it's a work in progress.
2021-01-21 08:19:17 +01:00
Kostas Karmas
32df06c280 Add TODO comment to explain the commenting out of the snapshot
CURA-7865
2021-01-20 12:51:13 +01:00
Kostas Karmas
a72a58cca1 Comment out the generation of the snapshot
While generating UFP files from outside the main thread, the snapshot generation crashes Cura
due to the OpenGL context.

To avoid that, for the time being, we comment out the generation of the snapshot.

CURA-7865
2021-01-20 11:23:48 +01:00
Kostas Karmas
72310919c3 Fix coding style
CURA-6915
2020-07-06 11:08:33 +02:00
Nino van Hooff
c64cff9a47 Merge remote-tracking branch 'origin/CURA-6915_identify_objects_on_buildplate' into CURA-6915_identify_objects_on_buildplate 2020-07-03 14:47:17 +02:00
Nino van Hooff
b1cc651a6a Use DepthFirstIterator to get all descendant Nodes
CURA-6915
2020-07-03 14:46:59 +02:00
Nino van Hooff
6cfdda0842
Apply suggestions from code review
CURA-6915

Co-authored-by: Jaime van Kessel <nallath@gmail.com>
2020-07-03 14:42:08 +02:00
Nino van Hooff
ead0594c56 Write group content metadata for ufp export
CURA-6915
2020-07-03 09:56:28 +02:00
Nino van Hooff
a56489b885 Exclude non-printing nodes from ufp export
CURA-6915
2020-07-02 17:19:21 +02:00
Jaime van Kessel
f2b209b79f
Apply suggestions from code review
Fix the codestyle

CURA-6915
2020-07-01 14:20:22 +02:00
Nino van Hooff
707745b2bf Revert "Revert "Write a list of object names to the global metadata of ufp files""
Was accidentally committed to master, now on a separate branch

CURA-6915

This reverts commit f660755b
2020-06-30 13:53:25 +02:00
Nino van Hooff
f660755b07 Revert "Write a list of object names to the global metadata of ufp files"
This was accidentally committed to master

This reverts commit 67836851
2020-06-30 13:51:02 +02:00
Nino van Hooff
6783685126 Write a list of object names to the global metadata of ufp
files

CURA-6915
2020-06-30 13:32:08 +02:00
Ghostkeeper
44abd08b32
Use newer extruderList rather than deprecated extruders property
Done during Turbo Testing and Tooling.
2020-06-05 15:17:36 +02:00
Ghostkeeper
1047cdd76c
Catch OSError when actually writing the UFP stream
This includes getting an error message when we don't have write access any more or when the file was deleted or connection lost while we were writing to it.

Fixes Sentry issue CURA-GX.
2020-04-09 14:55:14 +02:00
Lipu Fei
94e89ad4ac Fix merge conflicts with master 2019-09-24 14:26:43 +02:00
Jaime van Kessel
3ab0b5decf
Add extra exception handling for UFPwriter 2019-09-24 09:24:36 +02:00