Hi all.
When calling an OpenSCAD script from the command line, I get the following error:
"...-D "base=3.0" -D "stiffeningfactor=3.0" -D "detail=11.5" -D "height=3.0" "coexcuscad_V2.scad"
Could not initialize localization.
WARNING: variable id not specified as parameter, in file coexcuscad_V2.scad, line 23
WARNING: variable id not specified as parameter, in file coexcuscad_V2.scad, line 27
WARNING: variable id not specified as parameter, in file coexcuscad_V2.scad, line 31"
The lines in question are as follows:
" linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade*2, $fn=quality)
import (file = inputfile, id = "layer2");
linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade, $fn=quality)
import (file = inputfile, id = "layer3");
linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade, $fn=quality)
import (file = inputfile, id = "layer4");"
The idea is that each linear extrude is performed on a separate layer of the SVG, denoted by the id of the layer
I am not sure why it wants me to specify this as a parameter - it would need to be different for each operation and I am not sure how to do that?
Any help is greatly appreciated!
Looks like the version of openscad run from the command line does not have
an id parameter to import.
On Sun, 2 Apr 2023, 12:57 Peter Bates, peter.bates@live.co.za wrote:
Hi all.
When calling an OpenSCAD script from the command line, I get the following
error:
"...-D "base=3.0" -D "stiffeningfactor=3.0" -D "detail=11.5" -D
"height=3.0" "coexcuscad_V2.scad"
Could not initialize localization.
WARNING: variable id not specified as parameter, in file
coexcuscad_V2.scad, line 23
WARNING: variable id not specified as parameter, in file
coexcuscad_V2.scad, line 27
WARNING: variable id not specified as parameter, in file
coexcuscad_V2.scad, line 31"
The lines in question are as follows:
" linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade*2, $fn=quality)
import (file = inputfile, id = "layer2");
linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade, $fn=quality)
import (file = inputfile, id = "layer3");
linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade, $fn=quality)
import (file = inputfile, id = "layer4");"
The idea is that each linear extrude is performed on a separate layer of
the SVG, denoted by the id of the layer
I am not sure why it wants me to specify this as a parameter - it would
need to be different for each operation and I am not sure how to do that?
Any help is greatly appreciated!
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org
You're right. Used the dev preview for the new id feature nd did not purge the old version correctly
Thanks
From: nop head nop.head@gmail.com
Sent: Sunday, 02 April 2023 14:06
To: OpenSCAD general discussion Mailing-list discuss@lists.openscad.org
Subject: [OpenSCAD] Re: Command line syntax issue - variable not specified as a parameter
Looks like the version of openscad run from the command line does not have an id parameter to import.
On Sun, 2 Apr 2023, 12:57 Peter Bates, <peter.bates@live.co.zamailto:peter.bates@live.co.za> wrote:
Hi all.
When calling an OpenSCAD script from the command line, I get the following error:
"...-D "base=3.0" -D "stiffeningfactor=3.0" -D "detail=11.5" -D "height=3.0" "coexcuscad_V2.scad"
Could not initialize localization.
WARNING: variable id not specified as parameter, in file coexcuscad_V2.scad, line 23
WARNING: variable id not specified as parameter, in file coexcuscad_V2.scad, line 27
WARNING: variable id not specified as parameter, in file coexcuscad_V2.scad, line 31"
The lines in question are as follows:
" linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade*2, $fn=quality)
import (file = inputfile, id = "layer2");
linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade, $fn=quality)
import (file = inputfile, id = "layer3");
linear_extrude(height = base, center = false, convexity = 10)
offset(r=blade, $fn=quality)
import (file = inputfile, id = "layer4");"
The idea is that each linear extrude is performed on a separate layer of the SVG, denoted by the id of the layer
I am not sure why it wants me to specify this as a parameter - it would need to be different for each operation and I am not sure how to do that?
Any help is greatly appreciated!
OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.orgmailto:discuss-leave@lists.openscad.org