cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
phlp
Booster

Create parametric GDL pipe

Hello, I'm a newbie to GDL, trying to get into scripting / creating parametric objects.

 

Is there an easy way to edit the script of an object like a pipe to easily extend it?

 

Most importantly for a simple 2D-object.

Second, if possible, for a 3D-object. I'm currently using the shell tool to create it.

pipe.jpg

Cheers, phlp

Archicad 14-27 (28/29) DEU | WIN 11 25H2 | Intel Core i7-12700KF | NVIDIA GeForce RTX 3050 | 32 GB RAM | x64
3 Replies 3
Lingwisyer
Guru

You would just relate the element that is making the straight bit to your ZZYZX value. So for 2D that would be the y value of your LINE2 or POLY2 command while for 3D this would be your be your ZZYZX value in like your SHELL or TUBE.

 

LINE2 0, 0, 0, [fixed pipe length] - [pipe end length]
LINE2 0, 0, 0, ZZYZX - [pipe end length]

 

Ling.

 

ps. This is in the wrong sub, there is a specific GDL sub. A mod will probably move this for you.

pss. If the pipe was originally made via Save-as-object, then it will not be so easy as identifying parts in the automatically generated script so that you can isolate what you want to stretch from what you want to be static is difficult.

AC22-29 AUS 3200Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660
Hmooslechner
Moderator

Some AI-Solution for this Question - german, but You can let it translate in Youtube..

https://www.youtube.com/watch?v=XbGz5JGzuIY

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

i created this object in about 5 minutes , using Gemini , you can set the lentgh with hotspots , and define the pipe inclination in the object parameters , 

 

Archicad_V9Z3Y8z509.png

Archicad_Xemup3gQtV.png

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects

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!