atab. There are several informations about creating objects by "save as" out of the plan or by dragging into a script window here in the forum or at least in the gdl manual. If you open such an auto created object there are, if you have not saved as binary, a lot of commands appear to reproduce your graphical edited elements. The first few 10s of lines are not so much interesting, because they restore the environment settings in the moment of saving the object (PENs, MATERIALs etc.). Normally transformation commands (ADD, ROT etc.) are introducing the sculpture creating parts. Have a look at the manual to see how they work and what are the parameters for. You can also use the
www.selfgdl.com to serach for keywords and get references into the manual or the cookbook. If you have found a parameter of the command, you want to get flexible you can replace the value by a significant name. Use this name to add a new parameter in the parameter list. This I meant is the first step to parametric objects. No way to create complex objects, but a good one to get quick results.
Example:
If you save a slab, a CPRISM_ -command is created in the script:
!!
PEN 4
BODY -1
ADDZ -3.195
cPRISM_ "DEFAULT", "DEFAULT", "DEFAULT",
5, 0.36,
27.76440094153, 14.31665428471, 15,
28.86212690307, 14.31665428471, 15,
28.86212690307, 14.48297640009, 15,
27.76440094153, 14.48297640009, 15,
27.76440094153, 14.31665428471, -1
DEL 1
BODY -1
The fifth parameter of the command steers the height of the slab/prism. Replace the 0.36 with "height" and create a (length)parameter in the list, named "height" too. Set a description and default value (e.g. 0.36) to it and save the object.
!!
PEN 4
BODY -1
ADDZ -3.195
cPRISM_ "DEFAULT", "DEFAULT", "DEFAULT",
5, height,
27.76440094153, 14.31665428471, 15,
28.86212690307, 14.31665428471, 15,
28.86212690307, 14.48297640009, 15,
27.76440094153, 14.48297640009, 15,
27.76440094153, 14.31665428471, -1
DEL 1
BODY -1