polychemprint3.sequence.GCodeFile3DSlicer module

Parameterized code for reading in a gcode file for 3D printing and reprocessing for PCP3

First created on 05/14/2020 18:16:00
Revised: 11/11/21
Author: Bijal Patel
class polychemprint3.sequence.GCodeFile3DSlicer.GCodeFile3DSlicer(axes: polychemprint3.axes.axes3DSpec.Axes3DSpec = <polychemprint3.axes.nullAxes.nullAxes object>, tool: polychemprint3.tools.toolSpec.toolSpec = <polychemprint3.tools.nullTool.nullTool object>, **kwargs)

Bases: polychemprint3.sequence.sequenceSpec.sequenceSpec

Sequence template for importing 3D GCODE motion commands and tool triggers into PCP Recipe framework

genSequence()

Loads print sequence into a list into cmdList attribute.

Returns:whether successfully reached the end or not
Return type:bool
importFromGFile()

Attempts to read line by line from GcodeFile at GCodeFilePath into memory

insertToolCode(procGlines)
loadLogSelf(logString)

loads log back into dict.

Parameters:logString (String) – log string to be loaded back in
processGCode(GLines)

Attempts to filter line by line from GLines to remove garbage and substitute values

writeLogSelf()

Generates log string containing dict to be written to log file.

Returns:log in string format
Return type:String