Personally I think the approach dotSCAD uses is a little broken. If you do
like he suggests and you install two libs that both provide sweep.scad
you'll not be sure which one you're using. If you provide code to someone
else they won't know which of many sweep.scad files were intended. So what
you should actually do is create a libraries/dotSCAD directory and copy
everything from dotSCAD/src into that location. Add "libraries" to your
path. And then you should be able to do
use<dotSCAD/sweep.scad>
for example. (Note that trailing semicolons are not needed.) Now it is
unambiguous.
--
Sent from: http://forum.openscad.org/
Hi Adrianv,
good point. And this works for me.
thank you
dpa wrote
I see thank you. This reminds me of a long unsuccessful run. I just tried
it - again no success.. am I to stupid for this? I entered the correct*
path into every .profile:
(* when I call this path in Finder (via cmd+shift+g)
/Users/dpa/Documents/OpenSCAD/libraries/dotSCAD/src then I end up at the
correct path)
Are you using Windows? If that's your case, you should SET PATH=/Users/dpa/Documents/OpenSCAD/libraries/dotSCAD/src in your cmd.
Sent from: http://forum.openscad.org/
Are you using Windows?
No, I'm on mac.
adrianv wrote
Personally I think the approach dotSCAD uses is a little broken. If you
do
like he suggests and you install two libs that both provide sweep.scad
you'll not be sure which one you're using. If you provide code to someone
else they won't know which of many sweep.scad files were intended.
That's because I'm developing dotSCAD out of the libraries folder of
OpenSCAD. Setting OPENSCADPATH is convenient for me. I don't have to tell
myself I'm using dotSCAD when I'm developing dotSCAD.
People can have different ways to manage their libraries when using
OpenSCAD.
Coping everything from dotSCAD/src into a libraries/dotSCAD and use <dotSCAD/sweep.scad>; also cause errors when you send your code to someone
because he prefers to put the dotSCAD repo in the libraries folder of
OpenSCAD.
What users should do is reading OpenSCAD User Manual/Libraries carefully
and deciding how to manage their libraries. Before you send code to others,
write a document for it.
Sent from: http://forum.openscad.org/
dpa wrote
Are you using Windows?
No, I'm on mac.
OpenSCAD mailing list
Discuss@.openscad
Sorry, I have no experience about mac so cannot provide any help.
Sent from: http://forum.openscad.org/
I think OPENSCADPATH is intended to point to a folder of libraries, not a
single library. I point mine a folder called OpenSCADLibs where I put
libraries and include everything with <LIbName/file.scad> because even
though I only have my own library at the moment, I don't want to rule out
using another library.
On Wed, 8 Jul 2020 at 13:32, caterpillar caterpillar@openhome.cc wrote:
dpa wrote
Are you using Windows?
No, I'm on mac.
OpenSCAD mailing list
Discuss@.openscad
Sorry, I have no experience about mac so cannot provide any help.
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
On 7/8/2020 6:25 AM, nop head wrote:
I think OPENSCADPATH is intended to point to a folder of libraries,
not a single library. I point mine a folder called OpenSCADLibs where
I put libraries and include everything with <LIbName/file.scad>
because even though I only have my own library at the moment, I don't
want to rule out using another library.
That seems like a good convention for libraries with more than one file,
but a library with a single file shouldn't require a folder to contain
that one file.
On Wed, Jul 08, 2020 at 02:25:29PM +0100, nop head wrote:
I think OPENSCADPATH is intended to point to a folder of libraries, not a
single library.
I don't know about the MAC and I don't know about OpenSCAD's
implementation, but guessing from the name: In classical Unix, a path
is a list of directories where the objects of interest might be found.
How to specify the second entry in the list (separated by a space?
Colon? Comma?) depends on the implementation.
Roger.
--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 **
** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 **
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.
Actually, yes you can put several paths in OPENSCADPATH. It should have
been called OPENSCADPATHS!
The separator is ; on Windows and : on Linux. Mac is probably the same as
Linux.
On Wed, 8 Jul 2020 at 14:35, Rogier Wolff R.E.Wolff@bitwizard.nl wrote:
On Wed, Jul 08, 2020 at 02:25:29PM +0100, nop head wrote:
I think OPENSCADPATH is intended to point to a folder of libraries, not a
single library.
I don't know about the MAC and I don't know about OpenSCAD's
implementation, but guessing from the name: In classical Unix, a path
is a list of directories where the objects of interest might be found.
How to specify the second entry in the list (separated by a space?
Colon? Comma?) depends on the implementation.
Roger.
--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 **
The plan was simple, like my brother-in-law Phil. But unlike
Phil, this plan just might work.
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org