BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.

GDL object - custom UI, green ui tab icons

Jim Allen
Expert

I've almost finished my parametric manhole object (thanks in no small measure to Bruce Walker's fantastic Youtube channel Barking Dog BIM, and Lucas Becker's custom objects) but I have a few things to clean up, the most bizarre one being my custom UI tab icons.

 

I created some custom tab icons (why not - it's all learning...) which work in the UI, but a couple look like this:

 

Screenshot 2024-01-02 at 14.08.28.png

They were all created the same way (with Affinity Photo 2, using GS ones, converted to png) but two of them are green. when edited and previewed, they look fine:

ui_3d_settings.png

ui_tab_mat_text.png

I've tried changing the colour depth to 16bit greyscale and converting to tiff, but they remain, stubbornly - green.

The script looks fine:

 

Interface page...
UI_PAGE 1, -1, "Dimensions & settings", "ui_tab_dims_1"
..lots of script...
UI_PAGE 3, -1, "Fonts & Materials", "ui_tab_text_mat"
...

 

All the icons were created the same way (as far as I can tell) and were scripted the same way.

Any ideas?

You can take a look at the object here:

https://www.icloud.com/iclouddrive/0f4rkH_jttEICgU59WmSEPiDQ#GDL_Manhole

I'm going to make it freely available when it's done.

Feel free to clean up my crappy scripting and create a new version if you find it useful 😉

Archicad 27 UKI | OS X 12.7.1 Monterey
3 REPLIES 3
Jim Allen
Expert

Okay, so there was some weird stuff going on that I don't understand, so I used a GS tab icon as a base, and then created my new icons over it as layers.

The materials and fonts icon was particularly stubborn, and I think there was something about the source file that made it appear green.

I redrew it, and now it's fine.

There was also some weirdness with creating libraries - all down to my ignorance.

What ought to be done now is to embed the graphics into the gsm file, but that seems to be another level of difficulty again. I'll look at that when GS makes the process easier.

 

Uploaded to BIMObjects as an lcf file.

Archicad 27 UKI | OS X 12.7.1 Monterey

I have never encountered this behavior, but now that you say that you started with GS icons it makes somewhat sense to me.

All icons in AC are actually based on an SVG, and for some versions now linking the SVG with the Libpart_XMLConverter (that's how you can put pictures in the objects) will actually create and embed Multi-TIFFs from it. That is some very niche use – AC will then display the right resolution based on your screens resolution.

These Multi-TIFFs are so rare and wildly unused, that the support for it is quite low on the editing software side. Photoshop can open these, but not save them (as far I remember). So it might have scrambled up there something while you did your edits.

Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»

Thanks, I did see the multi-tiffs and had no idea how to deal with them.

 

I also looked up embedding the images with Libpart_XMLConverter, but that's a level of complexity that's not well-documented, and not for beginner idiots like me!

 

Right now, I'm updating it, adding more detail, and battling with Classifications, Properties to work out how to Schedule these objects. v0.5 will be better 😉

Archicad 27 UKI | OS X 12.7.1 Monterey
Learn and get certified!