kopia lustrzana https://github.com/vilemduha/blendercam
23 wiersze
536 B
Python
23 wiersze
536 B
Python
from . import nc
|
|
from . import iso
|
|
|
|
class Creator(iso.Creator):
|
|
def init(self):
|
|
iso.Creator.init(self)
|
|
|
|
def SPACE(self): return(' ')
|
|
|
|
def program_begin(self, id, comment):
|
|
self.write( ('(' + 'GCode created using the HeeksCNC Mach3 post processor' + ')' + '\n') )
|
|
self.write( ('(' + comment + ')' + '\n') )
|
|
|
|
def tool_change(self, id):
|
|
self.write_blocknum()
|
|
self.write('G43H%i'% id +'\n')
|
|
self.write_blocknum()
|
|
self.write((self.TOOL() % id) + '\n')
|
|
self.t = id
|
|
|
|
nc.creator = Creator()
|
|
|