We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.
SOLVED!

Basic 2D object - Cannot figure how to keep proportions

CARTA
Contributor

I want to create a basic 2D object (a "z" bar). I drew a fill, I know how to lock the "A" parameter, but I want the "B" parameter to be adjustable. But whenever I change the "B" size, the proportions of my fill are also changing.

 

I want to be able to change the Y parameter but while keeping proportion in between the fill nodes and between the hotspots and the fill.

 

It's must be so basic, but I am unable to find it...

 

Thank you a lot!

 

(I attached my current object).

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

Because you have simply saved selected 2D lines/fills as an object, it will stretch, but it will all stretch proportionally including the central web.

 

BarryKelly_0-1700797102360.png

 

The only way to avoid this, is to script the object yourself, so you can control what is or is not affected by the overall size.

This would require you to learn GDL scripting.

 

Barry.

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

3 REPLIES 3
Solution
Barry Kelly
Moderator

Because you have simply saved selected 2D lines/fills as an object, it will stretch, but it will all stretch proportionally including the central web.

 

BarryKelly_0-1700797102360.png

 

The only way to avoid this, is to script the object yourself, so you can control what is or is not affected by the overall size.

This would require you to learn GDL scripting.

 

Barry.

 

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

Thank you Barry.

 

Again, I don't get why creating objects is not much simpler like in Revit. As an architect, I really do not have the time nor the patience to learn coding... on top of everything else.

This can be done without GDL using profiles and modifiers.

 

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest