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.
31 lines
876 B
Python
31 lines
876 B
Python
import nc
|
|
import iso
|
|
import math
|
|
import datetime
|
|
import time
|
|
from format import Format
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
class Creator(iso.Creator):
|
|
def __init__(self):
|
|
iso.Creator.__init__(self)
|
|
self.output_tool_definitions = False
|
|
self.fmt = Format(dp_wanted = False, add_trailing_zeros = True, add_plus = True)
|
|
|
|
def SPACE_STR(self): 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):
|
|
self.write( ('(Created with Deckel FP4Ma post processor ' + str(now.strftime("%Y/%m/%d %H:%M")) + ')' + '\n') )
|
|
iso.Creator.program_begin(self, id, comment)
|
|
|
|
|
|
nc.creator = Creator()
|
|
|