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 Zones be made to write in Superscript?

Anonymous
Not applicable
I want Zones to display room area in square meters, using the shorter version of it : m2, with "2" in superscript. I also want it to be displayed in cyrillic - small cyrillic "m" is like capital latin "M".

Zone stamp is Zone_Stamp_02 10 on AC10.

Can you share any ideas?

sq.jpg
23 REPLIES 23
Laszlo Nagy
Community Admin
Community Admin
vistasp wrote:
It worked when I tried it - thank you Paulo. I didn't use the cut-paste method but directly put in the "²" character (Alt+0178 on a Windows system. BTW, "³" is Alt+0179).

Just out of interest, Laszo, what character were you using that returned a "?"
I did what Paulo wrote: went into the Character Map, selected the Superscript Two character, copied it onto the Clipboard and pasted it into the GDL. The ? character appeared only. I also tried entering ALT+0178 into the GDL Script and that did not work either.
I have English Windows XP SP2, that may be related.
SO I guess you guys are lucky it works on your systems.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Laszlo Nagy
Community Admin
Community Admin
vistasp wrote:
One thing cropped up during this issue which I don't understand. Actually there are lots of things I don't understand about GDL but...



1002:                                           !*** Area unit strings

   if strstr (form, "sqm") then unit = " m2"
   if strstr (form, "sqcm") then unit = " cm2"
   if strstr (form, "sqmm") then unit = " mm2"
   if strstr (form, "sqmm") then unit = " mm2"
   if strstr (form, "sqf") then unit = " sq ft"
   if strstr (form, "sqi") then unit = " sq inch"

return

1003:                                           !*** Volume unit strings

   if strstr (form, "cum") then unit = " m3"
   if strstr (form, "cucm") then unit = " cm3"
   if strstr (form, "cumm") then unit = " mm3"

return
In the 2D script of the area units of the zone stamp, why is mm2 given twice? Additionally, in the volume units, how come there are no cubic feet or cubic inches?
In both cases, the answer is: Probably there is no special reason except programmer error.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
vistasp
Advisor
laszlonagy wrote:
I have English Windows XP SP2, that may be related.
SO I guess you guys are lucky it works on your systems.
Hi Laszlo, This is an intriguing problem...

I'm using the English XP-SP2 too. Is your zone stamp using some font other than a standard one like Arial/Times New Roman? Also, do you get the same result with Paulo's modified stamp?

One last shot. In plain old notepad, when you hold down ALT and type 0178. Do you get "²" or the same question mark?
= v i s t a s p =
bT Square Peg
https://archicadstuff.blogspot.com
https://www.btsquarepeg.com
| AC 9-27 INT | Win11 | Ryzen 5700 | 32 GB | RTX 3050 |
Laszlo Nagy
Community Admin
Community Admin
vistasp wrote:
laszlonagy wrote:
I have English Windows XP SP2, that may be related.
SO I guess you guys are lucky it works on your systems.
Hi Laszlo, This is an intriguing problem...

I'm using the English XP-SP2 too. Is your zone stamp using some font other than a standard one like Arial/Times New Roman? Also, do you get the same result with Paulo's modified stamp?

One last shot. In plain old notepad, when you hold down ALT and type 0178. Do you get "²" or the same question mark?
I tried it with Arial, Times New Roman, it does not work.
In Notepad, if I enter ALT+0178, then the same wrong character appears.
If I go to Character Map, copy the Superscript Two character and paste it into Notepad, then the correct superscript 2 appears.
Pretty strange stuff.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Anonymous
Not applicable
To get superscript, you have to use some RICHTEXT2 statements, which I don't like.
Here is a quick workaround which gives the same result. The few changes are indicated in 2D script.

About copy/paste issues, i would not trust this solution. Anyway it does not work for me.
Anonymous
Not applicable
Thank you, Olivier! I tried your Zone stamp and it worked like a charm!

I just had to replace the letters for the sq.m. with a small Cyrillic "m"! I attach the changed stamp for the Cyrillic writing users:
Anonymous
Not applicable
Glad to know it worked Kliment.

...Just wanted some feedback from GS to explain that encoding problem on the GDL script... It's really weird...
Laszlo Nagy
Community Admin
Community Admin
I tried Olivier's object.
Here is the result I got.
Weird, maybe it is my system.
It is an English XP SP2, but some of the settings are Hungarian regional settings. Could this be related?
ZoneSuperScriptTwp.png
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Anonymous
Not applicable
Hi Laszlo & Kliment,

My workaround is a bit dirty, sorry, i made it in a hurry. Laszlo, what if you open the part, reinitialise parameters and save as?
I notice that the Zone_Stamp_02 11 has some improvements. I will look at it to write something more clean and parametric.
Laszlo Nagy
Community Admin
Community Admin
Check the attached image.
It is correct in the Settings Dialog preview, and incorrect on the Floor Plan.

However: I did a New & Reset and it fixed it. Now everything is fine on my machine, too.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27