discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Dynamic Include

TO
Trevor Orr
Fri, Nov 25, 2022 7:57 PM

I am pretty sure this is not possible from my attempts to do this but thought I would ask anyways.
Is there a way to do a dynamic include base on the value of variable ?  The reason is that I have a file that contains data to build parts and the data file is getting rather large (almost 1 MB) and it would be nice to be able to split it up into a separate file for each part.
So say the variable design equals "test" then I want to include the file "test.scad"
Also does a large data file like this decrease performance?  I would assume the larger the data file is the longer it takes for it to be parsed?

I am pretty sure this is not possible from my attempts to do this but thought I would ask anyways. Is there a way to do a dynamic include base on the value of variable ?  The reason is that I have a file that contains data to build parts and the data file is getting rather large (almost 1 MB) and it would be nice to be able to split it up into a separate file for each part. So say the variable design equals "test" then I want to include the file "test.scad" Also does a large data file like this decrease performance?  I would assume the larger the data file is the longer it takes for it to be parsed?