Parametric Model Maker support for includes

I have some OpenSCAD “code” on my personal computer that I would like to use with the Parametric Model Maker. But, I am using “standard” as well as local libraries via “include ”.

Does the Makeworld site support any of the standard libraries like BOSL2 and MCAD? How do I get a list of what is available? And if not, can I upload both my project’s scad file and the needed libraries to MW to make include work with “the local directory”?

If not, how do other people make use of libraries or do you manually create one huge scad file?

Also, one other thing, how do I find out the version of OpenSCAD this is based upon? I want to install the same on my systems.

Gary

Hi @GAlgier , you can find the list here:
image

We are using the version with commit b550957ddac62e59428d08efa62e2f44c15a0b95
manifold is enabled.

Following this thread I have tried to get an OpenScad model with four build files, each with an include <dimensions.scad>; line, to successfully load and generate on a MakerWorld post but the generate fails because the dimensions file is not found nor loaded. The individual build files also upload with an error to this effect. The dimensions.scad file was part of the upload and all files are in a separate file folder. Is there some way around this?

I have determined that you simply cannot use “include” unless it is to get one of the supplied library files. I think this is only MCAD/* right now.

I am an old C programmer so I saw the benefit of modular development and started doing everything as separate include files. Big mistake.

I got around this problem by writing a small python tool to preprocess my files.
I then upload one huge preprocessed SCAD file. Kinda messes up the concept of parts being owned/copyrighted/licensed by different people, because it all runs together.

I see no way for me to upload the Python script.
Here is a link to it in my Dropbox Public Folder: scpp.py

usage: python3 scpp.py main-file.scad > preprocessed-output.scad

1 Like

In OpenSCAD (not the parametric model maker–yet) you can use include if you specify a relative path. No need for a python script. I use this feature pretty often.

https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Include_Statement