You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
502 B

from hpgl_multipen_output import HpglMultipenOutput
from sys import argv
def svgToHPGL (path, speed=1, penCount=8, force=2):
e = HpglMultipenOutput()
e.affect([
'--orientation', '0',
'--force', '0',
'--overcut', '0',
'--precut', 'false',
'--flat', '4',
'--toolOffset', '0',
'--autoAlign', 'false',
'--speed', str(speed),
'--penCount', str(penCount),
'--force', str(force),
path], False)
return e.hpgl