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

Copy text from interface

JGoode
Expert
Hello,

I was wondering if it was possible to copy text from an interface as I want to add a link that people can copy and paste into their browser. I know I can create a text variable and then use that as an infield so they can't change the text but this comes with an arrow for the dropdown box which I don't want. Is it possible to either remove the arrow or use a different type of infield to display the text.

Thanks!
ArchiCAD 23

Windows 10
4 REPLIES 4
Palawat
Advocate
I'm not sure if you can copy text directly from the UI. But you can use ui_button or ui_pict_button and set the type to ui_link for URL.

Also, you can open the GDL Ref. Guide and search "ui_button" for more info.

HTH.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
JGoode
Expert
Palawat wrote:
I'm not sure if you can copy text directly from the UI. But you can use ui_button or ui_pict_button and set the type to ui_link for URL.

Also, you can open the GDL Ref. Guide and search "ui_button" for more info.

HTH.
Yeah I know I can have a link, which I do have. However I want a back-up link that can be copy and pasted in case the button doesn't work for whatever reason. I've got a temporary solution as it is but I was just after the "perfect" solution for it.

Thanks!
ArchiCAD 23

Windows 10
Palawat
Advocate
I see. Having a back-up plan is always a good thing.

Hope you find the solution you're looking for.
Archicad 26, Windows 10, Corei7 3.4 GHz, 16 GB Ram.
https://www.indigofigs.com
https://www.facebook.com/indigofigs
Barry Kelly
Moderator
JGoode wrote:
Hello,

I know I can create a text variable and then use that as an infield so they can't change the text but this comes with an arrow for the dropdown box which I don't want. Is it possible to either remove the arrow or use a different type of infield to display the text.
If the text parameter has a VALUE list with just the one option, it will not be editable but it will have the arrow.

If that text parameter does not have a VALUE list of options then it will not have the arrow.
But the problem is that it will then be editable by the user.
You can 'fix' that by adding .... PARAMETERS your_text_parameter = "your_text_value".
The user can still change it but it will always change back to what it should be.

Not sure if this helps.

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