We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Can a object request information from placed zones?

Anonymous
Not applicable
I have a title block object and would like it to request Square footage from placed zones to calculate square footage to reflect in my object:

First Floor: #####
Second Floor: #####
Total Living: #####
ETC............
or am I just dreaming
21 REPLIES 21
__archiben
Booster
hhd801 wrote:
I have a title block object and would like it to request Square footage from placed zones to calculate square footage to reflect in my object:
it's what zone stamps do isn't it? you could use an existing one or look at an existing stamp's GDL to see how it works . . .

HTH
~/archiben
b e n f r o s t
b f [a t ] p l a n b a r c h i t e c t u r e [d o t] n z
archicad | sketchup! | coffeecup
Anonymous
Not applicable
I have edited existing stamps. From what I can understand it appears that a request can only be made from a label in this situation and will only pull current selected data at the time of placement and/or selection before placement. If it could be done it seems to me it would be some sort of calculation script that would need to count and calculate all placed zones and from that I would need parameters to sort the collected data. The only question would be how would you regenerate the data if the zones change or other zones are added.

Makes sense to me but I am probably out in left field.
TomWaltz
Participant
I think your question is whether non-Zone objects can report information about Zones.

The answer is "kind of"

You can use the REQUEST statement to get the Category, Name, and Room Number. I don't believe you can access areai, perimeter, or volume though.
Tom Waltz
Anonymous
Not applicable
I appreciate all the responses on this topic. This board really helps having great people willing to help each other out.

Tom,
Thanks for the insight
I will do some more research. If I find something new I will post it.

Any other suggestions are greatly appreciated.

Thanks again
TomWaltz
Participant
hhd801 wrote:
I appreciate all the responses on this topic. This board really helps having great people willing to help each other out.

Tom,
Thanks for the insight
I will do some more research. If I find something new I will post it.

Any other suggestions are greatly appreciated.

Thanks again
It's ugly, but the Zones could write to a text file that your object then reads...
Tom Waltz
Barry Kelly
Moderator
TomWaltz wrote:
I think your question is whether non-Zone objects can report information about Zones.

The answer is "kind of"

You can use the REQUEST statement to get the Category, Name, and Room Number. I don't believe you can access areai, perimeter, or volume though.
I am just trying to do exactly this but with no luck so far.
I actually want my window to report which room zone it belongs to.
Couldn't get that to work so I just created a new object that just draws a circle in 2D and I place that object in a zone.
In the script (tried both master and 2D scripts) I have added the requests....

dummy=REQUEST("Zone_relations", "", cat_1, code_1, name_1, num_1, cat_2, code_2, name_2, num_2)

and

dummy_2=REQUEST("Zone_category", "", catname, catcode)

In both cases I get nothing returned in the variables.

However a zone stamp requesting exactly the same works fine for "zone category" but nothing for "zone relations".

I assume "zone category" only works with zone stamps and "zone relations" is for objects, but it doesn't seem to work.

Has anyone had any luck in this area or be able to shed some light on the subject please?

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
Frank Beister
Moderator
The request for ZONE_CATEGORY is fors zone stamp objects only.

ZONE_RELATION I got working a while ago. No time to test, but some hints: The zones are manual or automatic ones? There are double layered zones in this area? Zones are visible?

What is the return value of the command?
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Barry Kelly
Moderator
F. wrote:
The request for ZONE_CATEGORY is fors zone stamp objects only.

ZONE_RELATION I got working a while ago. No time to test, but some hints: The zones are manual or automatic ones? There are double layered zones in this area? Zones are visible?

What is the return value of the command?
Yep, zones are on and I have tried both manually placed and flood fill zones.
There are no overlapping zones.

I am simply getting "0" for the return of the REQUEST and for the variables.
I am checking this with a simple "PRINT" command in the 2D script.

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
Anonymous
Not applicable
Barry wrote:
I actually want my window to report which room zone it belongs to.
Couldn't get that to work so I just created a new object that just draws a circle in 2D and I place that object in a zone.
In the script (tried both master and 2D scripts) I have added the requests....

dummy=REQUEST("Zone_relations", "", cat_1, code_1, name_1, num_1, cat_2, code_2, name_2, num_2)

and

dummy_2=REQUEST("Zone_category", "", catname, catcode)

In both cases I get nothing returned in the variables.

However a zone stamp requesting exactly the same works fine for "zone category" but nothing for "zone relations".

I assume "zone category" only works with zone stamps and "zone relations" is for objects, but it doesn't seem to work.

Has anyone had any luck in this area or be able to shed some light on the subject please?

Barry.
You are right that "Zone_category" applies only to zone stamps and "Zone _relations" is for library parts. I have been doing a good bit of work with the latter lately and they are working as well as they can (I do wish the library parts could get more out of the zone than just name, rank and serial number). You do need to make sure that the part is actually in the zone - this is not always as obvious as it might seem.

Doors and windows can be a little tricky and as I recall the docs are misleading (if not actually wrong). The zone that the part is in is determined (as far as I can tell) only by its center of gravity (so to speak). That is to say what ever zone it is predominantly in. I have made a little dynamic hotspot to act as a switch for this purpose in door and window tags.