lasercut icon indicating copy to clipboard operation
lasercut copied to clipboard

Bug Parser error: syntax error during conversion to DXF

Open dizcza opened this issue 1 year ago • 0 comments

During the conversion of https://github.com/dizcza/lasercut_collection/blob/master/DPS3005.scad

./convert-2d.sh DPS3005.scad dxf

I get the following error

ERROR: Parser error: syntax error in file DPS3005_2d.scad, line 6
Can't parse file 'DPS3005_2d.scad'!

and DPS3005_2d.scad starts with

use <lasercut.scad>	;
$fn=60;
projection(cut = false)

ECHO: [[25, 9, 20, 2], [25, 15.5, 20, 2], [25, 22, 20, 2], [25, 28.5, 20, 2], [25, 35, 20, 2], [25, 41.5, 20, 2], [25, 48, 20, 2]]
lasercutout(thickness = 3, 
          points = [[0, 0], [119, 0], [119, 59], [0, 59], [0, 0]]
        , simple_tabs = [[180, -1.5, 0], [180, -1.5, 62], [270, 119, -1.5]]
        , finger_joints = [[0, 1, 4], [180, 1, 4], [90, 1, 4], [270, 0, 4]]
        ) 
...

Removing ECHO manually solved the problem.

dizcza avatar May 29 '23 17:05 dizcza