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

Modifing a Zone Stamp

rgarand
Booster
Hello all,

We are pulling out our hair here trying to fumble through customizing our Zone Stamp. We like the Zone Identifier 2 and have been able to manipulate the variables we want to see in our Room Finish Schedules/Info Box. Our problem is that we do not want the Frame box to size according to the Zone Name. We would like it to size according to the width of the Room Number/Room Area etc.

Any help would be appreciated.

Since we do not know much about GDL programming, does anyone know a good resource for GDL in ArchiCAD 9, or is the GDL Cookbook ok to look at for Version 9 GDL?

TIA
Robert J. Garand
ArchiCAD USA 27-Build 5001 USA FULL
Windows 10 Prof (64 bit) - Intel i9-10920X CPU 3.50 GHz - 128 GB RAM - NVIDIA Quadro RTX 5000
11 REPLIES 11
Anonymous
Not applicable
Most of the GDL remains the same in AC9. There is nothing new AFAIK in the zones so the Cookbook should be fine.

Re: the box sizing...

Look for STW(ROOM_NAME) in the script. It returns the real width of the actual string in meters at the current scale. Change the parameter (inside the parentheses) ROOM_NUMBER. That should do the trick.
rgarand
Booster
Matthew,
Thanks for the reply. I could not find any script with STW(ROOM_NAME) or anything with STW in it. I did find this:

if box_y and n then
pen Pen_Box
line2 0,-shight,0,-vlen
line2 max_len,-shight,max_len,-vlen

add2 0,-shight
for i=0 to n
if inline then
line2 0,-i*shight2, max_len, -i*shight2
else
if i=0 or i=n then line2 0,-i*shight2, max_len, -i*shight2
endif
next i
del 1
endif

box_y is the variable which turns the text box on/off. I see max_len in this part of the script...does this have anything to do with the box width?

We have another zone stamp that we have been using that works great...but does not have a room area option. I have tried looking through both codes...but I just don't know enough about GDL at this time to figure it out. I will look through the cookbook and some of the info at Graphisoft to learn more about GDL scripting.

Thanks for your help.
Robert J. Garand
ArchiCAD USA 27-Build 5001 USA FULL
Windows 10 Prof (64 bit) - Intel i9-10920X CPU 3.50 GHz - 128 GB RAM - NVIDIA Quadro RTX 5000
TomWaltz
Participant
You are correct, the max_len seems to be the variable you want. What you need to do is find the definition of max_len.

This is in the line
max_len = max (w_roonu, w_code)   !*** width of the stamp


Then you have to keeo working backwards, finding out what w_roonu and w_code are.

Using the "Find" command, you learn:
w_roonu = (stw (num_str)) * num
w_code = (stw (code_string)) * code 
Now you can look up the STW function in the GDL manual that comes with Archicad (as a PDF or in the Help files), and find out that STW returns the actual "model space" length of your text string, making it the perfect function to size your box.

Again, using "Find" you can learn that num_str is:
num_str=" "+ROOM_NUMBER+" "
Hopefully this points you in the right direction!
Tom Waltz
rgarand
Booster
Hi guys,

I figured it out!

With your help and a bit of running through the script...and some trial and error. I had to change a few more lines of code and now everything looks good. I am now going to add some variables and link it to an interactive schedule.

Thanks for the help and direction.
Robert J. Garand
ArchiCAD USA 27-Build 5001 USA FULL
Windows 10 Prof (64 bit) - Intel i9-10920X CPU 3.50 GHz - 128 GB RAM - NVIDIA Quadro RTX 5000
Anonymous
Not applicable
Try this : SmArT (m)

You can insert max eleven bawls
into desired order
Isn't perfect but even bad

at Cigraph's downloads

or ArchiCLASS's downloads

NB it's in italian

CU mirco
www.cad3d.it
Anonymous
Not applicable
CU wrote:
Try this : SmArT (m)
You can insert max eleven bawls
into desired order
Isn't perfect but even bad
Its hard to tell exactly what this "SmArt" is but it looks interesting. Where can we find more info about it in english?

Dan K
Anonymous
Not applicable
Its hard to tell exactly what this "SmArt"
??

It's a normal (Zone) Stamp.
Where can we find more info about it in english?
I don't think so

This object is not new but it has never been
created with different languages (to Italian)

CU mirco
www.cad3d.it
Djordje
Virtuoso
Dan wrote:
Where can we find more info about it in english
How is your Italian?

This is a global forum.
Djordje



ArchiCAD since 4.55 ... 1995
HP Omen
Anonymous
Not applicable
Djordje wrote:
Dan wrote:
Where can we find more info about it in english
How is your Italian?

This is a global forum.
Unfortunately, I don't speak any Italian. It seems like this zone has some interesting functionality and I would like to learn more about. Maybe there's an Italian/English speaking member of this forum who could provide more information about this zone object.

From what I can tell from the posted image, It looks like it gives you the ability to select multiple parameter values from a value list. this could be very useful...I'm curious why Graphisoft doesn't offer a similar zone in its basic library...

Dan K