cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

GDL
About building parametric objects with GDL.
SOLVED!

Is it possible to create a GDL that selects two or more labels and sums them?

LeeJaeYoung
Virtuoso

Is it possible to create a GDL that selects two or more labels and sums them?

I am talking about implementing GDL that reads the parameters for the area in gdl in No. 1 and 2 and displays the sum.

LeeJaeYoung_0-1668560627816.png

 

AC27 on window 11
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator

GDL objects have no awareness of any other objects.

Labels can only be associated to one element so can only read values from that one element.

 

Schedules can sum values (17.190 in your example).

 

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

2 REPLIES 2
Solution
Barry Kelly
Moderator

GDL objects have no awareness of any other objects.

Labels can only be associated to one element so can only read values from that one element.

 

Schedules can sum values (17.190 in your example).

 

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 so much ^^

 

I thought autocad's autolisp was the oldest scripting language.....
In revit and Archicad, you can process data only on schedule.

The figure below is a table supported by autocad.
It's almost like Excel. calculation is possible.
It is simply a block list made with Autolisp.

I think it would be nice to have something like table in Archicad and revit.

LeeJaeYoung_0-1668562975471.pngLeeJaeYoung_1-1668562992822.png

this is 49 * 1 = 49

LeeJaeYoung_2-1668563280297.png

this is sum(348)

LeeJaeYoung_3-1668563301356.png

 

 

AC27 on window 11