cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

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

GDL: Basic UI Shapes

Lingwisyer
Guru
Hi all,

Is there a way to create basic shapes in the UI script without resorting to images?



Ling.

AC22-23 AUS 7000Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win10 | R5 2600 | 16GB | GTX1660
2 REPLIES 2
Barry Kelly
Moderator
Apart from horizontal or vertical lines or rectangles, not that I know of.
You will have to use a picture.

And be aware that the bounding box of the picture will block other infields & outfields even if the picture has a transparent background.
It is especially troublesome for infields - it may look like it is in front of the picture but you can type anything in the field.
The trick I have found if you want an infield and picture to overlap is to script the infield, then the picture and then the same infield again.

UI_INFIELD...
UI_PICTURE...
UI_INFIELD...

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
I use single pixel bitmaps for frames and line (H&V),
It could be possible to script the other shapes using such single pixel bitmaps as well...yet I try avoiding it, because more complicated the UI scrip is, the less responsive the UI can be (especially the first use until it is cached).

Best Regards,
Piotr