feat: add model_name and plate_number placeholders #5401
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This uses the BBS project name from the
Project
tab which could be susceptible to upstream changes removing this feature.The project_name template only works when you open a 3MF file. If you create a new project and set the project name
Model.model_info
is always null whether you save the project or not. If you save the current project, switch to a new project/different project, then re-load it then the template works as expected.I'm not sure if it's an issue with this implementation or something else upstream.
This is distinct from the project file name in that it can be used to group multiple 3MF files under the same project. For example if you are printing parts for a Voron printer on a Voron 2.4 and Trident, you would have a 3MF file per printer but you may not want the different 3MF file names in the G-Code filename.
The plate number is assumed to always be <100 which matches the formatting of the plate number in the UI.
Relates-To: #3816
Screenshots/Recordings/Graphs
Tests