Choose your top Archicad wishes!

Read more
GDL
About building parametric objects with GDL.
SOLVED!

Best way to export Archicad model in GDL

Mario Sacco
Expert

I'm trying again to understand if there is a better method to export geometry from Archicad in GDl.

 

The general problem is for slab with rounded edges. I would like to have the possibilities to control the resolution in 3d. 

 

If you export a slab in GDL 2d The code recognize the rounded edges:

 

 

poly2_b{5}      17,      1,      0,      3,      1,      0, 
                   0,            0,            1,            0,            0,            1,            0, 
                 0.1,            0,      1, 
                 0.4,            0,      1, 
                 0.4,          0.1,    900, 
                   0,           90,   4001, 
                 0.5,          0.1,      1, 
                 0.5,          0.8,      1, 
                 0.4,          0.8,    900, 
                   0,           90,   4001, 
                 0.4,          0.9,      1, 
                 0.1,          0.9,      1, 
                 0.1,          0.8,    900, 
                   0,           90,   4001, 
                   0,          0.8,      1, 
                   0,          0.1,      1, 
                 0.1,          0.1,    900, 
                   0,           90,   4001, 
                 0.1,            0,      1

 

 

 

If you export a slab in GDL 3d the code doesn't recognize the rounded edges:

 

 

    cprism_{4} bms_7, bms_7, bms_7, 7,
                45,          0.3,
                     0.1,            0,            0,     79, bms_7,
                     0.4,            0,            0,     79, bms_7,
            0.4087488663526,            0,            0,     79, bms_7,
            0.4259807691808, 0.003038449397558,            0,     79, bms_7,
            0.4424232594843, 0.00902302644526,            0,     79, bms_7,
            0.4575767405157, 0.01777189279785,            0,     79, bms_7,
            0.4709807814216, 0.02901921857835,            0,     79, bms_7,
            0.4822281072021, 0.04242325948434,            0,     79, bms_7,
            0.4909769735547, 0.05757674051566,            0,     79, bms_7,
            0.4969615506024, 0.07401923081921,            0,     79, bms_7,
                     0.5, 0.09125113364741,            0,     79, bms_7,
                     0.5,          0.1,            0,     79, bms_7,
                     0.5,          0.8,            0,     79, bms_7,
                     0.5, 0.8087488663526,            0,     79, bms_7,
            0.4969615506024, 0.8259807691808,            0,     79, bms_7,
            0.4909769735547, 0.8424232594843,            0,     79, bms_7,
            0.4822281072021, 0.8575767405157,            0,     79, bms_7,
            0.4709807814216, 0.8709807814216,            0,     79, bms_7,
            0.4575767405157, 0.8822281072021,            0,     79, bms_7,
            0.4424232594843, 0.8909769735547,            0,     79, bms_7,
            0.4259807691808, 0.8969615506024,            0,     79, bms_7,
            0.4087488663526,          0.9,            0,     79, bms_7,
                     0.4,          0.9,            0,     79, bms_7,
                     0.1,          0.9,            0,     79, bms_7,
            0.09125113364741,          0.9,            0,     79, bms_7,
            0.07401923081921, 0.8969615506024,            0,     79, bms_7,
            0.05757674051566, 0.8909769735547,            0,     79, bms_7,
            0.04242325948434, 0.8822281072021,            0,     79, bms_7,
            0.02901921857835, 0.8709807814216,            0,     79, bms_7,
            0.01777189279785, 0.8575767405157,            0,     79, bms_7,
            0.00902302644526, 0.8424232594843,            0,     79, bms_7,
            0.003038449397559, 0.8259807691808,            0,     79, bms_7,
            1.249000902703E-16, 0.8087488663526,            0,     79, bms_7,
                       0,          0.8,            0,     79, bms_7,
                       0,          0.1,            0,     79, bms_7,
            2.478352131547E-18, 0.09125113364741,            0,     79, bms_7,
            0.003038449397558, 0.07401923081921,            0,     79, bms_7,
            0.00902302644526, 0.05757674051566,            0,     79, bms_7,
            0.01777189279785, 0.04242325948434,            0,     79, bms_7,
            0.02901921857835, 0.02901921857835,            0,     79, bms_7,
            0.04242325948434, 0.01777189279785,            0,     79, bms_7,
            0.05757674051566, 0.00902302644526,            0,     79, bms_7,
            0.07401923081921, 0.003038449397558,            0,     79, bms_7,
            0.09125113364741,            0,            0,     79, bms_7,
                     0.1,            0,            0,     -1, bms_7

 

 

 

Anybody have found a method to solve this issue?

Another issue is the possibility to create vertical slab and con vert them 

MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

You have no control how Archicad converts elements to the 3D script.

However, you could use the co-ordinates from the 2D script in a PRISM_ command in the 3D script.

Just add '15+64' for the masking values.

 

prism_      17,      1,      
                 0.1,            0,      15+64, 
                 0.4,            0,      15+64, 
                 0.4,          0.1,    900, 
                   0,           90,   4015+64, 
                 0.5,          0.1,      15+64, 
                 0.5,          0.8,      15+64, 
                 0.4,          0.8,    900, 
                   0,           90,   4015+64, 
                 0.4,          0.9,      15+64, 
                 0.1,          0.9,      15+64, 
                 0.1,          0.8,    900, 
                   0,           90,   4015+64, 
                   0,          0.8,      15+64, 
                   0,          0.1,      15+64, 
                 0.1,          0.1,    900, 
                   0,           90,   4015+64, 
                 0.1,            0,      -1

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

View solution in original post

2 REPLIES 2
Solution
Barry Kelly
Moderator

You have no control how Archicad converts elements to the 3D script.

However, you could use the co-ordinates from the 2D script in a PRISM_ command in the 3D script.

Just add '15+64' for the masking values.

 

prism_      17,      1,      
                 0.1,            0,      15+64, 
                 0.4,            0,      15+64, 
                 0.4,          0.1,    900, 
                   0,           90,   4015+64, 
                 0.5,          0.1,      15+64, 
                 0.5,          0.8,      15+64, 
                 0.4,          0.8,    900, 
                   0,           90,   4015+64, 
                 0.4,          0.9,      15+64, 
                 0.1,          0.9,      15+64, 
                 0.1,          0.8,    900, 
                   0,           90,   4015+64, 
                   0,          0.8,      15+64, 
                   0,          0.1,      15+64, 
                 0.1,          0.1,    900, 
                   0,           90,   4015+64, 
                 0.1,            0,      -1

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Mario Sacco
Expert

Thank you @Barry Kelly 

Modify 2d to 3d is the method that I generally I use.

MacBook M1 Max 64GB- OS X 12.2.1 - Archicad 27
https://www.archiradar.it/en/