GDL
About building parametric objects with GDL.

Is it possible to call the area of the label linked in FILL with call or request from other gdl?

LeeJaeYoung
Virtuoso

Is it possible to call the area of the label linked in FILL with call or request from other gdl?

What should I do?

AC27 on window 11
5 REPLIES 5
Barry Kelly
Moderator

Short answer - no.

 

Longer answer - the label does not have an area, it get the value from the fill and just reports it.

Labels can only be associated to one element.

GDL objects (excluding labels) can not directly query any other objects or elements.

 

What are you trying to do?

 

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

I'm trying to write a GDL for the sale area table.
The dedicated areas A to H are filled with fill and connected with labels to increase the area.
make it show up.
And you must bring the entire shared area.
When you create an area table, do you create it only as an input?
Or are you using a method to get data?

 

LeeJaeYoung_0-1656925959132.png

 

AC27 on window 11

Are you trying to do something like this other poster was doing?

Trying to compare individual areas with an overall area?

 

https://community.graphisoft.com/t5/Design-forum/Adding-percentage-to-Zone-Area-schedule/td-p/342977

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

I read this post
It's not what I want.
Zones are used for each room area.
However, we do not use the area for each type.
Just create a dedicated area and a common area for each type with Fill.
(Do you make these zones with the "zone tool"?)

LeeJaeYoung_0-1656929477692.png

In this way, the total area for each floor and the common area for each floor are created and summed to obtain the total common area.

AC27 on window 11

You can use zones or fills.

They both have the ability to give you an area.

Personally I use fills to calculate areas.

 

But still, objects can not interact with fills.

Only labels and schedules can give you information about the fills.

 

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