';
+}
+
+function CreatePrinterBlock(OneModel)
+{
+ let vendor = OneModel['vendor']
+ let vendorName = vendor=="BBL" ? "Bambu Lab" : vendor=="Custom" ? "Generic Printer" : vendor;
+ let modelName = OneModel['name'];
+
+ // Most of it unneeded. this can be applied in profiles
+ if( vendor=="Custom")
+ modelName = modelName.split(" ")[1];
+ // these uses different case in name; seckit, ratrig, blocks
+ else if (modelName.toLowerCase().startsWith(vendorName.toLowerCase()))
+ modelName = modelName.slice(vendorName.length);
+ // these not matches. have to fix in profiles to reduce conditions in here;
+ else if (vendor == "MagicMaker" && modelName.startsWith("MM"))
+ modelName = modelName.slice(("MM").length);
+ else if (vendor == "OrcaArena")
+ modelName = modelName.slice(("Orca Arena").length);
+ else if (vendor == "RolohaunDesign" && modelName.startsWith("Rolohaun"))
+ modelName = modelName.slice(("Rolohaun").length);
+
+ return '