Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

GDL
About building parametric objects with GDL.

Ampersand disappearing

Bruce
Advisor
How do I stop the ampersand (&) symbol from disappearing in UI_TOOLTIP text? It appears fine in a UI_OUTFIELD, but not in UI_TOOLTIP.
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
13 REPLIES 13
Barry Kelly
Moderator
The outfield and the tooltip can be different.


But if you are using a variable instead of a quoted string, you will just need to create a second variable (can be hidden from users) that has the &&&, that will change as you change the original variable.
So as the user changes the original variable, the second will automatically change as well and will be used for the tooltip.

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
Bruce
Advisor
Yes, I had considered this. I was hoping to be more efficient with my code. Oh well.
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
runxel
Hero
You are still on AC22, Bruce?

In 24 everything seems working.
Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Bruce
Advisor
Well that's interesting. I am scripting this part in 23. Just did a quick test in 24, and you're right! The ampersand works fine for tooltips.

Thanks for that!
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb