def getCraftedTextFromText(gcodeText, exportRepository=None):
 if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'export'):
  return gcodeText
 if (exportRepository == None):
  exportRepository = settings.getReadRepository(ExportRepository())
 if (not exportRepository.activateExport.value):
  return gcodeText
 return ExportSkein().getCraftedGcode(exportRepository, gcodeText)

def getCraftedTextFromText ( gcodeText , exportRepository = None ) : if gcodec . isProcedureDoneOrFileIsEmpty ( gcodeText , 'export' ) : return gcodeText if ( exportRepository == None ) : exportRepository = settings . getReadRepository ( ExportRepository ( ) ) if ( not exportRepository . activateExport . value ) : return gcodeText return ExportSkein ( ) . getCraftedGcode ( exportRepository , gcodeText )
smooth a gcode linear move text .