cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

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

LeeJaeYoung
Advisor

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

 

AC25 5010 / AC26 4019 on window 11
1 ACCEPTED SOLUTION
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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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

 

 

AC25 5010 / AC26 4019 on window 11

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!