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

GDL
About building parametric objects with GDL.
SOLVED!

Using GDL to write parameterized iron chains

yongler
Enthusiast

In some scenic spots in Hangzhou, China, chains are used as railings, and the top of pagodas is fixed with iron chains. Like the picture. This kind of iron chain is written in GDL language. The hot spot at one end can be dragged, and the sag arc in the middle can also be controlled. Another key parameter is that each iron ring rotates by 90 °

20230325202137505.jpg 20230326150528.jpg

 

18 REPLIES 18
Laszlo Nagy
Community Admin
Community Admin

Yeah, ChatGPT is a GDL Noob. 🙂

Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
yongler
Enthusiast

GDL is not popular, so developers of chatGPT have not input GDL information?

 

GDL may be the  forever blind zone of chatGPT ? 😎

 

 

Hmooslechner
Moderator

Maybe a rope instead?

Make Your own... with the profilemaker and my GDL - a few changes in 3D-script:

 

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia

capture_20230402202655084.jpg

julienK
Advocate

I managed to achieve this with a proper catenary curve. 

 

As Hmooslechner mentioned the hard part was to get equidistant points along the curve to generate the chain links.  I used an approximation method that works just fine.

I converted this method found on YouTube  https://www.youtube.com/watch?v=gkdnS6rISV0 to work in GDL, but this method generates points at fix intervals along the X axis so the greater the slope the greater the distance between points along the curve.

 

To fix this I calculate the tangent angle at  point n on the curve then  generate the point n+1 at cos(tangent angle) along the x axis. This generates equidistant points along then curve.

 

Both anchors can be moved around

chain length1.jpg

 

The length of the chain can be adjusted without moving the anchors.

The links of the chain are fully customizable.

link1.jpg

link2.jpg

link3.jpg

link4.jpg

 

    And it can be displayed as a cable

 

cable.jpg

That was much too much maths for me!  😂 - Where and when and how will we (the cummunity) get this? 😇

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
julienK
Advocate

I'll make a commercial version available for purchase on monday. PM me if interested.

Solution

For those of us who ever toyed with the idea of trying to learn gdl, this has been beautiful to read and terrifying at the same time.  I congratulate you all guys

 

Cheers!

In my mind, some solutions for that without the intensive amounts of maths are rumbling in the cellars of my mind, but i can wait to realize them until You have made Your money.. How long do you think I should wait until your expenses are financially recouped?   😇

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!