discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Parametrize an assembly

M
MichaelAtOz
Tue, Nov 29, 2016 9:46 PM

Wonka23 wrote

Hello everybody :)

I would like to parametrize a group.
So I have different components that I would like to assemble to an
assembly. In this assembly, I would then specify parameters that adjust
the individual parts. Is this possible with openscad and is my question
understandable?
The final code should look like for example like this

// car
car_size = 5

// tires
tires_size = 21

import ("car.stl");
import ("tires.stl");

and in this assembly i want that the adjustment is set

thanks for your help in forward

Hi Wonka,
Welcome to the forum. Your post is still flagged as "This post has NOT been
accepted by the mailing list yet", so nobody gets it unless they look.
You need to subscribe to the  mailing list
http://forum.openscad.org/mailing_list/MailingListOptions.jtp?forum=1  ,
and respond to the registration email.

Re your question.
For .stl files you can use scale() resize() difference() etc. on the whole
.stl model, but not on subsets.

However if instead of import, you used modules which created the car & tire
geometry (like using cube() cylinder() etc and the rest), the parameters can
easily be used to create custom models.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Parametrize-an-assembly-tp19364p19414.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

Wonka23 wrote > Hello everybody :) > > I would like to parametrize a group. > So I have different components that I would like to assemble to an > assembly. In this assembly, I would then specify parameters that adjust > the individual parts. Is this possible with openscad and is my question > understandable? > The final code should look like for example like this > > // car > car_size = 5 > > // tires > tires_size = 21 > > import ("car.stl"); > import ("tires.stl"); > > and in this assembly i want that the adjustment is set > > > thanks for your help in forward Hi Wonka, Welcome to the forum. Your post is still flagged as "This post has NOT been accepted by the mailing list yet", so nobody gets it unless they look. You need to subscribe to the mailing list <http://forum.openscad.org/mailing_list/MailingListOptions.jtp?forum=1> , and respond to the registration email. Re your question. For .stl files you can use scale() resize() difference() etc. on the whole .stl model, but not on subsets. However if instead of import, you used modules which created the car & tire geometry (like using cube() cylinder() etc and the rest), the parameters can easily be used to create custom models. ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Parametrize-an-assembly-tp19364p19414.html Sent from the OpenSCAD mailing list archive at Nabble.com.