Ejemplo n.º 1
0
    def addStartCommandsToGcode(self):
        if config.get(name, 'start.file') != None:
            for line in archive.getLinesFromAlterationsFile(self.startFile):
                self.slicedModel.startGcodeCommands.append(line)

        if self.setPositioningToAbsolute:
            self.slicedModel.startGcodeCommands.append(GcodeCommand(gcodes.ABSOLUTE_POSITIONING))
        if self.setUnitsToMillimeters:
            self.slicedModel.startGcodeCommands.append(GcodeCommand(gcodes.UNITS_IN_MILLIMETERS))
        if self.startAtHome:
            self.slicedModel.startGcodeCommands.append(GcodeCommand(gcodes.START_AT_HOME))
        if self.resetExtruder:
            self.slicedModel.startGcodeCommands.append(GcodeCommand(gcodes.RESET_EXTRUDER_DISTANCE, [('E', '0')]))
Ejemplo n.º 2
0
 def addEndCommandsToGcode(self):
     if config.get(name, 'end.file') != None:
         for line in archive.getLinesFromAlterationsFile(self.endFile):
             self.slicedModel.endGcodeCommands.append(line)