Skip to content

Commit

Permalink
Merge pull request SolidCode#9 from donbright/master
Browse files Browse the repository at this point in the history
clarify that there are no wildcards in OpenSCAD use/include statements
  • Loading branch information
diara628 committed Aug 7, 2012
2 parents 662f853 + c90db2a commit 8930770
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ See http://creativecommons.org/licenses/LGPL/2.1/ or the included file, lgpl-2.1

## Usage ##

You can import these files in your scripts with `use <MCAD/*.scad>`, but some
files include useful constants which will be available with `include <MCAD/*.scad>`,
which should be safe to use on all included files (ie. no top level code should
create geometry). (There is a bug/feature that prevents including constants from
files that "include" other files - see the openscad mailing list archives for more
details. Since the maintainers aren't very responsive, may have to work around this
somehow)
You can import these files in your scripts with `use <MCAD/filename.scad>`,
where 'filename' is one of the files listed below like 'motors' or
'servos'. Some files include useful constants which will be available
with `include <MCAD/filename.scad>`, which should be safe to use on all
included files (ie. no top level code should create geometry). (There is
a bug/feature that prevents including constants from files that
"include" other files - see the openscad mailing list archives for more
details. Since the maintainers aren't very responsive, may have to work
around this somehow)

If you host your project in git, you can do `git submodule add URL PATH` in your
repo to import this library as a git submodule for easy usage. Then you need to do
Expand Down

0 comments on commit 8930770

Please sign in to comment.