I have a library that I made and have used for a couple of years and has
worked great. I have a several parameters in it that I used to generate
several different variations of objects to stl files from command line. I
added a couple of new parameters it works great in the OpenSCAD GUI but when
I added those parameters to the command line I get the error message.
Current top level object is empty
This is an example of what I am running from command line. p3 is this new
parameter, if I leave it off the stl file is generated correctly. lib2.scad
uses lib1.scad
openscad.com -o obj1.stl lib2.scad -D p1=3 -D p2=5 -D p3=circle
WARNING: Ignoring unknown variable 'circle', in file lib2.scad, line 460.
WARNING: Ignoring unknown variable 'circle', in file lib1.scad, line 1727.
Current top level object is empty.
The curious thing is that lib2.scad only has 456 lines and lib1.scad only
has 1723 lines.
If I change p3=circle to p4=circle then the stl file is generated just fine
except that lib2 then just uses the default value for p3. Any ideas what
could be the issue here?
I am running Windows 10 Pro and OpenSCAD version 2019.05
--
Sent from: http://forum.openscad.org/
fractorr wrote
openscad.com -o obj1.stl lib2.scad -D p1=3 -D p2=5 -D p3=circle
WARNING: Ignoring unknown variable 'circle', in file lib2.scad, line 460.
WARNING: Ignoring unknown variable 'circle', in file lib1.scad, line 1727.
Current top level object is empty.
The curious thing is that lib2.scad only has 456 lines and lib1.scad only
has 1723 lines.
If I change p3=circle to p4=circle then the stl file is generated just
fine
except that lib2 then just uses the default value for p3. Any ideas what
could be the issue here?
Ignore the line numbers, '-D var=val' adds them to the end of the files, in
memory, possibly with an extra CR or LF.
Should it be '-D p3="circle" ' or is 'circle' a variable defined in code?
OpenSCAD Admin - email* me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
--
Sent from: http://forum.openscad.org/
Thanks, that was close, it got onto the right track though. This is what
worked for me.
'-D p3="circle"'
On Sat, Sep 12, 2020 at 8:17 PM MichaelAtOz oz.at.michael@gmail.com wrote:
fractorr wrote
openscad.com -o obj1.stl lib2.scad -D p1=3 -D p2=5 -D p3=circle
WARNING: Ignoring unknown variable 'circle', in file lib2.scad, line 460.
WARNING: Ignoring unknown variable 'circle', in file lib1.scad, line
Current top level object is empty.
The curious thing is that lib2.scad only has 456 lines and lib1.scad only
has 1723 lines.
If I change p3=circle to p4=circle then the stl file is generated just
fine
except that lib2 then just uses the default value for p3. Any ideas what
could be the issue here?
Ignore the line numbers, '-D var=val' adds them to the end of the files, in
memory, possibly with an extra CR or LF.
Should it be '-D p3="circle" ' or is 'circle' a variable defined in code?
OpenSCAD Admin - email* me if you need anything, or if I've done
something stupid...
Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
For Windows just the quote should work as it includes them in the
parameter, but Linux doesn't.
On Sun, 13 Sep 2020 at 16:38, Trevor Orr fractorr@gmail.com wrote:
Thanks, that was close, it got onto the right track though. This is what
worked for me.
'-D p3="circle"'
On Sat, Sep 12, 2020 at 8:17 PM MichaelAtOz oz.at.michael@gmail.com
wrote:
fractorr wrote
openscad.com -o obj1.stl lib2.scad -D p1=3 -D p2=5 -D p3=circle
WARNING: Ignoring unknown variable 'circle', in file lib2.scad, line
WARNING: Ignoring unknown variable 'circle', in file lib1.scad, line
Current top level object is empty.
The curious thing is that lib2.scad only has 456 lines and lib1.scad
only
has 1723 lines.
If I change p3=circle to p4=circle then the stl file is generated just
fine
except that lib2 then just uses the default value for p3. Any ideas
what
could be the issue here?
Ignore the line numbers, '-D var=val' adds them to the end of the files,
in
memory, possibly with an extra CR or LF.
Should it be '-D p3="circle" ' or is 'circle' a variable defined in code?
OpenSCAD Admin - email* me if you need anything, or if I've done
something stupid...
Unless specifically shown otherwise above, my contribution is in the
Public Domain; to the extent possible under law, I have waived all
copyright and related or neighbouring rights to this work. Obviously
inclusion of works of previous authors is not included in the above.
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org