Hi, Is it not possible to use the import() openscad function to import an stl for a parametric model? i uploaded my stl file to the model (oven_knob_solid.stl), then uploaded the scad file (oven_knob.scad) but it just fails validation. I am referencing the stl in the scad file using
If it fails validation, run the stl through a repair tool to ensure it is manifold. openscad can’t handle broken solids.
Otherwise, should be ok. Additive operations work well but it can struggle on subtractive depending on your solid. If youre using windows beware strings and filepaths. escape your backslashes, keep it on the same drive, mind your case sensitivity.
All works fine locally in OpenSCAD, and i am doing a subtractive operation. i am referencing the file by filename only, as locally it is in the same directory and when uploaded to my model on makerworld it is just in the root alonside the scad file itself. If i upload a scad file with only the import line in it, it fails validation. It just seems that the validation is happening somewhere that the stl file does not exist
Oh didn’t know you were using the cloud. I’m not sure you are able to rely on direct filesystem access on bambus cloud. If I were their security engineer I’d probably disallow it. Maybe a ticket?
You have an OpenSCAD file which you wish to use in the Parametric Model Maker (PMM), that script uses the OpenSCAD method Import, which is used to reference an external file and include it with your model.
Nope.
Despite my repeated requests to allow the designer to upload additional files for use of the Import method, they read that (likely while drinking alcohol p) and got confused. They added a feature that let the user upload a file from the users local machine and not by the designer.
@MalcTheOracle Yes, that’s exactly what i’m trying to do. The replies to your comment on that thread was a frustrating read. I managed to get it working by adding the parameter and uploading the model directly in Parametric Model Maker but that’s kind of useless. How hard would it be to just look for a specified filename in the model files and upload that alongside the scad file. I even tried as @Milo1 suggested and upload the file to my model as default.stl, but it’s still just the bambu default.stl until you upload one manually.
EDIT: I have managed to achieve what i wanted by importing my model into Fusion, redoing the parameterised modifications and exporting as an f3d. This can then be uploaded and used by Parametric Model Maker.