Skip to content

User filament presets: group by vendor in the filament list and map CFS slots by filament ID #648

Open

Description

@K8nsch

Environment

  • Creality Print 7.3.0.6151, Windows 11
  • Creality K2 Plus (0.4 nozzle) with one CFS, LAN connection
  • Printer firmware: 1.1.7.0 (latest installed)

Summary

Standalone user filament presets (no inherits, own filament_vendor, own filament_id) are second-class citizens in two places:

  1. The filament drop-down groups system presets under vendor headers ("Creality", "eSUN", "Generic", ...), but lists all user presets flat. With several third-party brands the user section becomes a long unsorted list and the vendor has to be repeated in every preset name.
  2. "Sync from printer" maps a CFS slot to a preset only by the slot's name, although the printer also sends the filament ID of the slot. A user preset is only found if the name shown on the printer is exactly the preset's name before @.

1. Group user presets by vendor

PlaterPresetComboBox already has everything needed:

  • filament_brand_of() (src/slic3r/GUI/PresetComboBoxes.cpp:1058) reads filament_vendor and its comment explicitly mentions user presets ("User presets often do not carry the option themselves, so walk up inherits").
  • But the user section is appended with grouping disabled (PresetComboBoxes.cpp:1293):
    append_section(nonsys_presets, nonsys_preset_names, selected_user_preset, nullptr, false);
    together with the comment at line 1228 "Only system filaments are grouped by brand".

Request: pass true for user presets (or make it an option), so that user presets are shown as e.g. "User presets → SUNLU → PLA Plus" just like system presets. Ideally the display name could then drop a leading vendor, as system presets do ("CR PLA" under "Creality").

2. Map CFS slots by filament ID

The printer's boxsInfo already contains the filament ID of each slot in rfid, e.g.:

{"id": 0, "vendor": "eSUN", "type": "PLA", "name": "eSUN PLA+", "rfid": "E1001", ...}

Creality Print stores it in DM::Material::rfid (src/slic3r/GUI/print_manage/data/DataType.cpp:172), but FilamentPanel::apply_auto_mapping_filament (src/slic3r/GUI/FilamentPanel.cpp:3566) only passes name to FilamentItem::set_filament_selection, which matches it against the combo text or the preset alias (FilamentPanel.cpp:1907). For standalone user presets the alias is the name before @ (src/libslic3r/Preset.cpp:3846, set_custom_preset_alias), and it is silently dropped if another preset already uses that alias (Preset.cpp:3858).

Consequences:

  • If the printer shows a shorter name than the preset (e.g. vendor "SUNLU", name "PLA Plus" for the preset "SUNLU PLA Plus @creality K2 Plus 0.4 nozzle"), sync does nothing and the previous selection stays. There is no message.
  • Two presets with the same alias cannot be told apart, although their filament_id differs.

Request: first look for a compatible preset whose filament_id equals the slot's rfid, and only fall back to the name. If nothing matches, show a hint instead of silently keeping the old selection.

Steps to reproduce (part 2)

  1. Create a standalone user filament preset "SUNLU PLA Plus @creality K2 Plus 0.4 nozzle" (vendor SUNLU, type PLA, filament_id e.g. Pd41d51e).
  2. Make the same filament selectable on the printer with brand "SUNLU", name "PLA Plus", id Pd41d51e, and assign it to CFS slot 1B.
  3. In Creality Print set filament 2 to "Generic PLA" and click "Sync from printer".

Expected: filament 2 becomes "SUNLU PLA Plus".
Actual: filament 2 stays "Generic PLA"; with name "SUNLU PLA Plus" on the printer it works.

Line numbers refer to tag v7.3.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions