Implement libarea improvements for profile Implement libarea pocketing. consolidate occ and libarea pocketing operation into one with algorithm switch consolidate occ aand libarea profile op into one with algorithm switch add basic engraving operation. Add rough UI for profile holding tags implement holding tags for libarea profile. implement basic defaults for depth settings. First move in Drilling is rapid to clearance height. UI needs lots of work but is usable.
40 lines
1.2 KiB
Python
40 lines
1.2 KiB
Python
import nc
|
|
import iso_modal
|
|
import math
|
|
import datetime
|
|
import time
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
class Creator(iso_modal.Creator):
|
|
def __init__(self):
|
|
iso_modal.Creator.__init__(self)
|
|
self.output_block_numbers = False
|
|
self.output_tool_definitions = False
|
|
self.output_g43_on_tool_change_line = True
|
|
|
|
def SPACE(self):
|
|
if self.start_of_line == True:
|
|
self.start_of_line = False
|
|
return ''
|
|
else:
|
|
return ' '
|
|
|
|
def PROGRAM(self): return None
|
|
def PROGRAM_END(self): return( 'T0' + self.SPACE() + 'M06' + self.SPACE() + 'M02')
|
|
|
|
############################################################################
|
|
## Begin Program
|
|
|
|
|
|
def program_begin(self, id, comment):
|
|
if (self.useCrc == False):
|
|
self.write( ('(Created with emc2b post processor ' + str(now.strftime("%Y/%m/%d %H:%M")) + ')' + '\n') )
|
|
else:
|
|
self.write( ('(Created with emc2b Cutter Radius Compensation post processor ' + str(now.strftime("%Y/%m/%d %H:%M")) + ')' + '\n') )
|
|
iso_modal.Creator.program_begin(self, id, comment)
|
|
|
|
|
|
nc.creator = Creator()
|
|
|