Esempio n. 1
0
def getCraftedTextFromText( gcodeText, raftlessRepository = None ):
	"Raftless a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'raft' ):
		print( 'The gcode contains already a raft. Skipping raftless tool.' )
		return gcodeText
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'raftless' ):
		return gcodeText
	if raftlessRepository == None:
		raftlessRepository = settings.getReadRepository( RaftlessRepository() )
	if not raftlessRepository.activateRaftless.value:
		return gcodeText
	return RaftlessSkein().getCraftedGcode( gcodeText, raftlessRepository )
Esempio n. 2
0
def getCraftedTextFromText(gcodeText, repository=None):
	"Inset the preface gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'inset'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( InsetRepository() )
	return InsetSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 3
0
def getCraftedTextFromText( text, repository = None ):
	"Preface and convert an svg text."
	if gcodec.isProcedureDoneOrFileIsEmpty( text, 'preface'):
		return text
	if repository == None:
		repository = settings.getReadRepository(PrefaceRepository())
	return PrefaceSkein().getCraftedGcode(repository, text)
Esempio n. 4
0
def getCraftedTextFromText(gcodeText, repository=None):
    "Unpause a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'unpause'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(UnpauseRepository())
    if not repository.activateUnpause.value:
        return gcodeText
    return UnpauseSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 5
0
def getCraftedTextFromText(gcodeText, repository=None):
	'Export a gcode linear move text.'
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'export'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository(ExportRepository())
	if not repository.activateExport.value:
		return gcodeText
	return ExportSkein().getCraftedGcode(repository, gcodeText)
Esempio n. 6
0
def getCraftedTextFromText( gcodeText, stretchRepository = None ):
	"Stretch a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'stretch'):
		return gcodeText
	if stretchRepository == None:
		stretchRepository = settings.getReadRepository( StretchRepository() )
	if not stretchRepository.activateStretch.value:
		return gcodeText
	return StretchSkein().getCraftedGcode( gcodeText, stretchRepository )
Esempio n. 7
0
def getCraftedTextFromText( gcodeText, repository = None ):
	"Widen the preface gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'widen' ):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( WidenRepository() )
	if not repository.activateWiden.value:
		return gcodeText
	return WidenSkein().getCraftedGcode( gcodeText, repository )
Esempio n. 8
0
def getCraftedTextFromText( gcodeText, liftRepository = None ):
	"Lift the preface gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'lift'):
		return gcodeText
	if liftRepository == None:
		liftRepository = settings.getReadRepository( LiftRepository() )
	if not liftRepository.activateLift.value:
		return gcodeText
	return LiftSkein().getCraftedGcode( liftRepository, gcodeText )
Esempio n. 9
0
def getCraftedTextFromText(gcodeText, combRepository=None):
    "Comb a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'comb'):
        return gcodeText
    if combRepository == None:
        combRepository = settings.getReadRepository(CombRepository())
    if not combRepository.activateComb.value:
        return gcodeText
    return CombSkein().getCraftedGcode(combRepository, gcodeText)
Esempio n. 10
0
def getCraftedTextFromText(gcodeText, oozebaneRepository=None):
    "Oozebane a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'oozebane'):
        return gcodeText
    if oozebaneRepository == None:
        oozebaneRepository = settings.getReadRepository(OozebaneRepository())
    if not oozebaneRepository.activateOozebane.value:
        return gcodeText
    return OozebaneSkein().getCraftedGcode(gcodeText, oozebaneRepository)
Esempio n. 11
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Dwindle a gcode linear move text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'dwindle'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(DwindleRepository())
    if not repository.activateDwindle.value:
        return gcodeText
    return DwindleSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 12
0
def getCraftedTextFromText(gcodeText, repository=None):
	'Dimension a gcode text.'
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'dimension'):
		return gcodeText
	if repository is None:
		repository = settings.getReadRepository( DimensionRepository() )
	if not repository.activateDimension.value:
		return gcodeText
	return DimensionSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 13
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Cool a gcode linear move text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'cool'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(CoolRepository())
    if not repository.activateCool.value:
        return gcodeText
    return CoolSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 14
0
def getCraftedTextFromText(gcodeText, stretchRepository=None):
    "Stretch a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'stretch'):
        return gcodeText
    if stretchRepository == None:
        stretchRepository = settings.getReadRepository(StretchRepository())
    if not stretchRepository.activateStretch.value:
        return gcodeText
    return StretchSkein().getCraftedGcode(gcodeText, stretchRepository)
Esempio n. 15
0
def getCraftedTextFromText(gcodeText, flowRepository=None):
    "Flow a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'flow'):
        return gcodeText
    if flowRepository == None:
        flowRepository = settings.getReadRepository(FlowRepository())
    if not flowRepository.activateFlow.value:
        return gcodeText
    return FlowSkein().getCraftedGcode(gcodeText, flowRepository)
def getCraftedTextFromText(gcodeText, repository=None):
	'Multiply the fill text.'
	if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'multiply'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository(MultiplyRepository())
	if not repository.activateMultiply.value:
		return gcodeText
	return MultiplySkein().getCraftedGcode(gcodeText, repository)
Esempio n. 17
0
def getCraftedTextFromText( gcodeText, towerRepository = None ):
	"Tower a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'tower'):
		return gcodeText
	if towerRepository == None:
		towerRepository = settings.getReadRepository( TowerRepository() )
	if not towerRepository.activateTower.value:
		return gcodeText
	return TowerSkein().getCraftedGcode( gcodeText, towerRepository )
Esempio n. 18
0
def getCraftedTextFromText(gcodeText, liftRepository=None):
    "Lift the preface gcode text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'lift'):
        return gcodeText
    if liftRepository == None:
        liftRepository = settings.getReadRepository(LiftRepository())
    if not liftRepository.activateLift.value:
        return gcodeText
    return LiftSkein().getCraftedGcode(liftRepository, gcodeText)
Esempio n. 19
0
def getCraftedTextFromText( gcodeText, chamberRepository = None ):
	"Chamber a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'chamber' ):
		return gcodeText
	if chamberRepository == None:
		chamberRepository = settings.getReadRepository( ChamberRepository() )
	if not chamberRepository.activateChamber.value:
		return gcodeText
	return ChamberSkein().getCraftedGcode( gcodeText, chamberRepository )
Esempio n. 20
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Outset the preface gcode text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'outset'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(OutsetRepository())
    if not repository.activateOutset.value:
        return gcodeText
    return OutsetSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 21
0
def getCraftedTextFromText( gcodeText, wipeRepository = None ):
	"Wipe a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'wipe'):
		return gcodeText
	if wipeRepository == None:
		wipeRepository = settings.getReadRepository( WipeRepository() )
	if not wipeRepository.activateWipe.value:
		return gcodeText
	return WipeSkein().getCraftedGcode( gcodeText, wipeRepository )
Esempio n. 22
0
def getCraftedTextFromText(gcodeText, jitterRepository=None):
    "Jitter a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'jitter'):
        return gcodeText
    if jitterRepository == None:
        jitterRepository = settings.getReadRepository(JitterRepository())
    if not jitterRepository.activateJitter.value:
        return gcodeText
    return JitterSkein().getCraftedGcode(jitterRepository, gcodeText)
Esempio n. 23
0
File: cool.py Progetto: Ademan/Cura
def getCraftedTextFromText(gcodeText, repository=None):
	'Cool a gcode linear move text.'
	if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'cool'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository(CoolRepository())
	if not repository.activateCool.value:
		return gcodeText
	return CoolSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 24
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Skin a gcode linear move text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'skin'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(SkinRepository())
    if not repository.activateSkin.value:
        return gcodeText
    return SkinSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 25
0
def getCraftedTextFromText(gcodeText, repository=None):
	'Outset the preface gcode text.'
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'outset'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( OutsetRepository() )
	if not repository.activateOutset.value:
		return gcodeText
	return OutsetSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 26
0
def getCraftedTextFromText(fileName, svgText, repository=None):
    "Scale and convert an svgText."
    if gcodec.isProcedureDoneOrFileIsEmpty(svgText, 'scale'):
        return svgText
    if repository == None:
        repository = settings.getReadRepository(ScaleRepository())
    if repository.activateScale.value:
        return ScaleSkein().getCraftedGcode(fileName, repository, svgText)
    return svgText
Esempio n. 27
0
def getCraftedTextFromText( gcodeText, splodgeRepository = None ):
	"Splodge a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'splodge'):
		return gcodeText
	if splodgeRepository == None:
		splodgeRepository = settings.getReadRepository( SplodgeRepository() )
	if not splodgeRepository.activateSplodge.value:
		return gcodeText
	return SplodgeSkein().getCraftedGcode( gcodeText, splodgeRepository )
Esempio n. 28
0
def getCraftedTextFromText( gcodeText, repository = None ):
	"Widen the preface gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'widen'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( WidenRepository() )
	if not repository.activateWiden.value:
		return gcodeText
	return WidenSkein().getCraftedGcode( gcodeText, repository )
Esempio n. 29
0
def getCraftedTextFromText(gcodeText, repository=None):
    "Comb a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, "comb"):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(CombRepository())
    if not repository.activateComb.value:
        return gcodeText
    return CombSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 30
0
def getCraftedTextFromText(gcodeText, repository=None):
	"Feed a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'feed'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository(FeedRepository())
	if not repository.activateFeed.value:
		return gcodeText
	return FeedSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 31
0
def getCraftedTextFromText(gcodeText, repository=None):
    "Skirt the fill text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, "skirt"):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(SkirtRepository())
    if not repository.activateSkirt.value:
        return gcodeText
    return SkirtSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 32
0
def getCraftedTextFromText(gcodeText, homeRepository=None):
    "Home a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'home'):
        return gcodeText
    if homeRepository == None:
        homeRepository = settings.getReadRepository(HomeRepository())
    if not homeRepository.activateHome.value:
        return gcodeText
    return HomeSkein().getCraftedGcode(gcodeText, homeRepository)
Esempio n. 33
0
def getCraftedTextFromText( gcodeText, whittleRepository = None ):
	"Whittle the preface gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'whittle'):
		return gcodeText
	if whittleRepository == None:
		whittleRepository = settings.getReadRepository( WhittleRepository() )
	if not whittleRepository.activateWhittle.value:
		return gcodeText
	return WhittleSkein().getCraftedGcode( whittleRepository, gcodeText )
Esempio n. 34
0
def getCraftedTextFromText(gcodeText, repository=None):
    "Mill a gcode linear move gcodeText."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'mill'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(MillRepository())
    if not repository.activateMill.value:
        return gcodeText
    return MillSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 35
0
def getCraftedTextFromText(gcodeText, repository=None):
	'Joris a gcode linear move text.'
	if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'Joris'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository(JorisRepository())
	if not repository.activateJoris.value:
		return gcodeText
	return JorisSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 36
0
def getCraftedTextFromText( gcodeText, whittleRepository = None ):
	"Whittle the preface gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'whittle'):
		return gcodeText
	if whittleRepository is None:
		whittleRepository = settings.getReadRepository( WhittleRepository() )
	if not whittleRepository.activateWhittle.value:
		return gcodeText
	return WhittleSkein().getCraftedGcode( whittleRepository, gcodeText )
Esempio n. 37
0
def getCraftedTextFromText(gcodeText, repository=None):
	'Alteration a gcode linear move text.'
	if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'alteration'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository(AlterationRepository())
	if not repository.activateAlteration.value:
		return gcodeText
	return AlterationSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 38
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Export a gcode linear move text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'export'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(ExportRepository())
    if not repository.activateExport.value:
        return gcodeText
    return ExportSkein().getCraftedGcode(repository, gcodeText)
Esempio n. 39
0
def getCraftedTextFromText( gcodeText, flowRepository = None ):
	"Flow a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'flow' ):
		return gcodeText
	if flowRepository == None:
		flowRepository = settings.getReadRepository( FlowRepository() )
	if not flowRepository.activateFlow.value:
		return gcodeText
	return FlowSkein().getCraftedGcode( gcodeText, flowRepository )
Esempio n. 40
0
def getCraftedTextFromText(gcodeText, lashRepository=None):
    "Get a lashed gcode linear move text from text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'lash'):
        return gcodeText
    if lashRepository == None:
        lashRepository = settings.getReadRepository(LashRepository())
    if not lashRepository.activateLash.value:
        return gcodeText
    return LashSkein().getCraftedGcode(gcodeText, lashRepository)
Esempio n. 41
0
def getCraftedTextFromText( gcodeText, repository=None ):
	"Alternate shell text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'altshell' ):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( AltshellRepository() )
	if not repository.activateAltshell.value:
		return gcodeText
	return AltshellSkein().getCraftedGcode( gcodeText, repository )
Esempio n. 42
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Limit a gcode text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'limit'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(LimitRepository())
    if not repository.activateLimit.value:
        return gcodeText
    return LimitSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 43
0
def getCraftedTextFromText( gcodeText, repository = None ):
	"Limit a gcode text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'limit' ):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( LimitRepository() )
	if not repository.activateLimit.value:
		return gcodeText
	return LimitSkein().getCraftedGcode( gcodeText, repository )
Esempio n. 44
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Multiply the fill text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'multiply'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(MultiplyRepository())
    if not repository.activateMultiply.value:
        return gcodeText
    return MultiplySkein().getCraftedGcode(gcodeText, repository)
Esempio n. 45
0
def getCraftedTextFromText(gcodeText, repository=None):
	'Dimension a gcode text.'
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'dimension'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( DimensionRepository() )
	if not repository.activateDimension.value:
		return gcodeText
	return DimensionSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 46
0
def getCraftedTextFromText( gcodeText, splodgeRepository = None ):
	"Splodge a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'splodge'):
		return gcodeText
	if splodgeRepository == None:
		splodgeRepository = settings.getReadRepository( SplodgeRepository() )
	if not splodgeRepository.activateSplodge.value:
		return gcodeText
	return SplodgeSkein().getCraftedGcode( gcodeText, splodgeRepository )
Esempio n. 47
0
File: comb.py Progetto: Sciumo/SFACT
def getCraftedTextFromText( gcodeText, combRepository = None ):
	"""Comb a gcode linear move text."""
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'comb'):
		return gcodeText
	if combRepository is None:
		combRepository = settings.getReadRepository( CombRepository() )
	if not combRepository.activateComb.value:
		return gcodeText
	return CombSkein().getCraftedGcode( combRepository, gcodeText )
Esempio n. 48
0
def getCraftedTextFromText( gcodeText, wipeRepository = None ):
	"Wipe a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'wipe' ):
		return gcodeText
	if wipeRepository == None:
		wipeRepository = settings.getReadRepository( WipeRepository() )
	if not wipeRepository.activateWipe.value:
		return gcodeText
	return WipeSkein().getCraftedGcode( gcodeText, wipeRepository )
Esempio n. 49
0
def getCraftedTextFromText(gcodeText, repository=None):
	"Mill a gcode linear move gcodeText."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'mill'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( MillRepository() )
	if not repository.activateMill.value:
		return gcodeText
	return MillSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 50
0
def getCraftedTextFromText( gcodeText, repository=None ):
	"Alternate shell text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'altshell' ):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( AltshellRepository() )
	if not repository.activateAltshell.value:
		return gcodeText
	return AltshellSkein().getCraftedGcode( gcodeText, repository )
Esempio n. 51
0
def getCraftedTextFromText( gcodeText, oozebaneRepository = None ):
	"Oozebane a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'oozebane'):
		return gcodeText
	if oozebaneRepository == None:
		oozebaneRepository = settings.getReadRepository( OozebaneRepository() )
	if not oozebaneRepository.activateOozebane.value:
		return gcodeText
	return OozebaneSkein().getCraftedGcode( gcodeText, oozebaneRepository )
Esempio n. 52
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Dcflow a gcode text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'dcflow'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(DcflowRepository())
    if not repository.activateDcflow.value:
        return gcodeText
    return DcflowSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 53
0
def getCraftedTextFromText(gcodeText, repository=None):
    "Dwindle a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, "dwindle"):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(DwindleRepository())
    if not repository.activateDwindle.value:
        return gcodeText
    return DwindleSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 54
0
def getCraftedTextFromText(fileName, svgText, repository=None):
    "Bottom and convert an svgText."
    if gcodec.isProcedureDoneOrFileIsEmpty(svgText, 'bottom'):
        return svgText
    if repository == None:
        repository = settings.getReadRepository(BottomRepository())
    if not repository.activateBottom.value:
        return svgText
    return BottomSkein().getCraftedGcode(fileName, repository, svgText)
Esempio n. 55
0
def getCraftedTextFromText( gcodeText, homeRepository = None ):
	"Home a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'home'):
		return gcodeText
	if homeRepository == None:
		homeRepository = settings.getReadRepository( HomeRepository() )
	if not homeRepository.activateHome.value:
		return gcodeText
	return HomeSkein().getCraftedGcode( gcodeText, homeRepository )
Esempio n. 56
0
def getCraftedTextFromText(gcodeText, repository=None):
    "Chamber a gcode linear move text."
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'chamber'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(ChamberRepository())
    if not repository.activateChamber.value:
        return gcodeText
    return ChamberSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 57
0
File: feed.py Progetto: Sciumo/SFACT
def getCraftedTextFromText(gcodeText, repository=None):
	"""Feed a gcode linear move text."""
	if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'feed'):
		return gcodeText
	if repository is None:
		repository = settings.getReadRepository(FeedRepository())
	if not repository.activateFeed.value:
		return gcodeText
	return FeedSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 58
0
def getCraftedTextFromText(gcodeText, repository=None):
	"Temperature a gcode linear move text."
	if gcodec.isProcedureDoneOrFileIsEmpty( gcodeText, 'qqtemperature'):
		return gcodeText
	if repository == None:
		repository = settings.getReadRepository( qqTemperatureRepository() )
	if not repository.activateTemperature.value:
		return gcodeText
	return qqTemperatureSkein().getCraftedGcode(gcodeText, repository)
Esempio n. 59
0
def getCraftedTextFromText(fileName, svgText, repository=None):
	"Scale and convert an svgText."
	if gcodec.isProcedureDoneOrFileIsEmpty(svgText, 'scale'):
		return svgText
	if repository == None:
		repository = settings.getReadRepository(ScaleRepository())
	if repository.activateScale.value:
		return ScaleSkein().getCraftedGcode(fileName, repository, svgText)
	return svgText
Esempio n. 60
0
def getCraftedTextFromText(gcodeText, repository=None):
    'Skirt the fill text.'
    if gcodec.isProcedureDoneOrFileIsEmpty(gcodeText, 'skirt'):
        return gcodeText
    if repository == None:
        repository = settings.getReadRepository(SkirtRepository())
    if repository.skirtLineCount.value < 1:
        return gcodeText
    return SkirtSkein().getCraftedGcode(gcodeText, repository)