cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
clauds1223
Contributor

How to create a parametric 3D object in ArchiCAD

I have this little window awning that I want to be able to change with the width of the windoCapturesdfdsfdfg.PNGws. Is there a way to do this parametrically so I don't have change it everytime I change the window size?

 

Thanks, 

Claudia 

 

Operating system used: Windows 11

Setup info provided by author
14 Replies 14
Barry Kelly
Moderator

Not if they are all separate windows.

You could create an object that becomes a macro for a single window and it will adjust as you change that window.

But you will need to now a bit of GDL scripting and it will only work for one window.

 

I would just keep it separate and adjust as you need to.

 

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
Lingwisyer
Guru

Is that window box just a morph you have saved as an object and placed infront of the wall?

 

https://community.graphisoft.com/t5/GDL/Create-parametric-GDL-pipe/m-p/699951#M8396

 

Gemini can apparently script a stretchable pipe, it could probably script a stretchable box. Pretty sure there are a couple of other examples around here of people using GPT and Claudia for basic things.

 

Ling.

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
Barry Kelly
Moderator

I don't think a stretchable box is the real problem here.

That would be quite easy to do.

 

The problem here is the original poster wants it to span around 3 or 4 windows and have it adjust as those window sizes are changed.

that would be a challenge.

 

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
Ahmed_K
Mentor

using gemini , i created this code, it works well , just change the building material name : 

 

! --- Dimensions & Settings ---
! A = Overall Width (System Parameter)
! B = Overall Height (System Parameter)
thickness = 0.05
depth = 0.60

! --- Surface / Building Material ---
building_material "Concrete"

! --- Orientation ---
rotx 90

! --- Parametric Box Construction ---
prism_ 10, depth,
    ! Outer boundary (using A and B)
    0, 0, 15,
    A, 0, 15,
    A, B, 15,
    0, B, 15,
    0, 0, -1,

    ! Inner boundary (subtraction)
    thickness, thickness, 15,
    A - thickness, thickness, 15,
    A - thickness, B - thickness, 15,
    thickness, B - thickness, 15,
    thickness, thickness, -1

 

 

then , you can call this code in the window object at he top level , the code uses A and B variables from the window to follow it's dimensions.

 

PS : i'm a GDL Newbie , i don't code , but , whith AI i created a dozen of great working gdl objects for my daily wor k ,just by describing what i need to geminy , and add instructions step by step , ex : create the shape, add parametricity , add hotspots etc 

 

Ahmed_K_0-1776852257893.png

 

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

Ah, so when they change any of the multiple windows within it, it streches to accommodate... I feel like you might be able to achieve that in a limited fashion with a wall addon looking at the coordinates of the wall openings, but that is way down the API rabbit hole... Maybe @Hmooslechner might have an idea if it is possible since he's made a wall addon before.

 

Ling.

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

https://www.youtube.com/watch?v=J_GF-5jCTDE

 

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

At least the impression that I got from the original image it that it should surround multiple windows.

A single window is relatively easy, I have done that myself.

 

I guess you could do it per single window with an option to turn the sides off (which is also what I have done for my windows).

Then they can 'link' when placed next to each other.

 

BarryKelly_1-1776918101050.png

 

Unfortunately I can't share this object as it is built in and designed to work specifically with my windows.

It won't work with the Graphisoft windows.

 

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
Lingwisyer
Guru

That is a thought. You could just use the exterior Casing for windows that are ganged.

Lingwisyer_0-1776929792996.png

 

Ling.

 

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
clauds1223
Contributor

Thanks Barry,

 

How would I create an parametric object that adjusts based on the size of each window?

 

 

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!