diff --git a/src/libslic3r/Format/bbs_3mf.cpp b/src/libslic3r/Format/bbs_3mf.cpp index 1a6ecb81d..95bf605fb 100644 --- a/src/libslic3r/Format/bbs_3mf.cpp +++ b/src/libslic3r/Format/bbs_3mf.cpp @@ -5704,7 +5704,7 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result) } for (auto it = plate_data->warnings.begin(); it != plate_data->warnings.end(); it++) { - stream << " <" << SLICE_WARNING_TAG << " " << "msg=\"" << it->msg << "\" " << "level=\"" << std::to_string(it->level) << "\" />\n"; + stream << " <" << SLICE_WARNING_TAG << " msg=\"" << it->msg << "\" level=\"" << std::to_string(it->level) << "\" error_code =\"" << it->error_code << "\" />\n"; } stream << " \n"; } diff --git a/src/libslic3r/GCode/GCodeProcessor.cpp b/src/libslic3r/GCode/GCodeProcessor.cpp index 4ba5042ea..783220a09 100644 --- a/src/libslic3r/GCode/GCodeProcessor.cpp +++ b/src/libslic3r/GCode/GCodeProcessor.cpp @@ -4014,7 +4014,8 @@ void GCodeProcessor::update_slice_warnings() } if (!warning.params.empty()) { - warning.msg = BED_TEMP_TOO_HIGH_THAN_FILAMENT; + warning.msg = BED_TEMP_TOO_HIGH_THAN_FILAMENT; + warning.error_code = "10004001"; m_result.warnings.push_back(warning); //bbs:HRC checker diff --git a/src/libslic3r/GCode/GCodeProcessor.hpp b/src/libslic3r/GCode/GCodeProcessor.hpp index 60744afa1..755f4d14e 100644 --- a/src/libslic3r/GCode/GCodeProcessor.hpp +++ b/src/libslic3r/GCode/GCodeProcessor.hpp @@ -136,6 +136,7 @@ namespace Slic3r { struct SliceWarning { int level; // 0: normal tips, 1: warning; 2: error std::string msg; // enum string + std::string error_code; // error code for studio std::vector params; // extra msg info };