From: Youness Alaoui Date: Fri, 26 Jun 2015 19:24:57 +0000 (-0400) Subject: Change TAZ machine width to 290 X-Git-Tag: lulzbot-15.02.1-2.01~74 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e2dcd521b091a62840da560a2d06c283d55d8a7c;p=cura.git Change TAZ machine width to 290 This will allow prints to be centered. Fixes issue #98 --- diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index 026a9583..839322c8 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -500,7 +500,7 @@ class MachineSelectPage(InfoPage): profile.putProfileSetting('retraction_enable', 'True') elif self.LulzbotTaz4Radio.GetValue() or self.LulzbotTaz5Radio.GetValue() or self.LulzbotMiniRadio.GetValue(): if self.LulzbotTaz4Radio.GetValue(): - profile.putMachineSetting('machine_width', '298') + profile.putMachineSetting('machine_width', '290') profile.putMachineSetting('machine_depth', '275') profile.putMachineSetting('machine_height', '250') profile.putProfileSetting('nozzle_size', '0.35') @@ -508,7 +508,7 @@ class MachineSelectPage(InfoPage): profile.putMachineSetting('machine_type', 'lulzbot_TAZ_4') profile.putMachineSetting('serial_baud', '115200') elif self.LulzbotTaz5Radio.GetValue(): - profile.putMachineSetting('machine_width', '298') + profile.putMachineSetting('machine_width', '290') profile.putMachineSetting('machine_depth', '275') profile.putMachineSetting('machine_height', '250') profile.putMachineSetting('serial_baud', '115200') diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 8cb87ba5..4a3f0ea4 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -1359,4 +1359,14 @@ def getAlterationFileContents(filename, extruderCount = 1): return unicode(prefix + re.sub("(.)\{([^\}]*)\}", replaceTagMatch, alterationContents).rstrip() + '\n' + postfix).strip().encode('utf-8') + '\n' def performVersionUpgrade(): - pass + for n in xrange(0, getMachineCount()): + # This is a hack around an issue where the machine type in the wizard + # changed and causes some people to have it set to lulzbot_TAZ and some + # people have it set to lulzbot_TAZ_4. + if getMachineSetting('machine_type', n) == 'lulzbot_TAZ': + putMachineSetting('machine_type', 'lulzbot_TAZ_4', n) + + # Change TAZ print bed so prints are centered when scaled to the max + if getMachineSetting('machine_type', n).startswith('lulzbot_TAZ_') and + getMachineSetting('machine_width', n) == '298': + profile.putMachineSetting('machine_width', '290')