Collaboration with other software
About model and data exchange with 3rd party solutions: Revit, Solibri, dRofus, Bluebeam, structural analysis solutions, and IFC, BCF and DXF/DWG-based exchange, etc.

Zone Stamp: Round up Occupancy?

Anonymous
Not applicable
Using the Zone Stamp:

Is there a way to round up the occupancy number without tweaking the 'Area per Person in sq. ft.' or adding 'Number of Additional Occupants'?

Zone_Stamp_Occupancy.JPG
6 REPLIES 6
Barry Kelly
Moderator
You would have to code it in the GDL script for the zone stamp.
That figure is simply based on the number of people per SQF multiplied by the area of the zone.
You would then have to code in the script that you want to round it up by using a mathematical equation.

I would be guessing that is why that have added the 'number of additional occupants' parameter so the user can easily adjust the occupancy at their will rather than having it round up/down automatically.

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
Yea, I was thinking it would be more under the hood work. GDL scripting is not quite in my toolbox of tricks .... yet.

Any suggestions on where to look/learn on GDL scripting for AC?
Barry Kelly
Moderator
ESP182 wrote:
Yea, I was thinking it would be more under the hood work. GDL scripting is not quite in my toolbox of tricks .... yet.

Any suggestions on where to look/learn on GDL scripting for AC?
This may help.

http://archicad-talk.graphisoft.com/viewtopic.php?p=264052

I learnt most from the GDL Cookbook by David Nicholson Cole.
It is old now but still relevant.

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
Hello Barry,

I do not want to take a long time, but I need help. I can't understand how to do ''Round up Occupancy", I want, if my ROUND is 46.9855, Result will be 47,00. I Have archicad 21 and could not find a way how correctly write down on parameters. I have good knowledge working in archicad, but I don't know how to write down any scripts.
Please, if you don't trouble, help me and teach me how to resolve this issue or tell me if you know that person Who will solve the problem.

Thank you in advance, please send me answers to my private email: gabrielgurgenidze [at] gmail [dot] com. I look forward your answer as soon as possible.
Barry Kelly
Moderator
Rather than doing the privately, let’s keep this on the forum so others can benefit as well.

What are the chances of you upgrading to version 22?
It has expressions in properties that can allow you to create this type of rounding without having to worry about GDL.

If 22 is not an option then what zone stamp are you using?

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
Eduardo Rolon
Moderator
What I used to do prior to 22 was to create a Schedule listing Zones and Occupancy and another Property for the "roundup".
Export this to Excel
Open in Excel and format to round up and then import back into AC
Eduardo Rolón AIA NCARB
AC27 US/INT -> AC08

Macbook Pro M1 Max 64GB ram, OS X 10.XX latest
another Moderator