cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

Location of picture referenced with index

Not applicable
Hello,

I have a model I need to modify with a ui_pict_button in the Interface script, where the picture_reference is an index, as shown below

ui_pict_button ui_link,"text", 1, 300,0, 100,30, 1, "www.somewebpage.com" UI_TOOLTIP "Click to open webpage"

From the GDL Reference Guide I understand that the first number 1 is a picture index which makes reference to a picture stored in the library part. However, this line is the only one in the model which has any mention of a picture. Furthermore, the image in question is not found as a file in the library's folder structure, so I assume that it is somehow stored within the model.

My question is,

How can a picture be stored with a picture index and where is it stored?


blob
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Barry Kelly
Moderator
I have never gotten involved in this myself, but I believe the image is stored as binary information inside the actual GSM object.
You can not access the images directly in the GDL editor.

I believe you need to use the LP_XMLConverer tool to extract the images from the file.
It can also be used to re-create the object and embed the images in it.

http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-lp_xmlconverter-tool

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

View solution in original post

2 REPLIES 2
Solution
Barry Kelly
Moderator
I have never gotten involved in this myself, but I believe the image is stored as binary information inside the actual GSM object.
You can not access the images directly in the GDL editor.

I believe you need to use the LP_XMLConverer tool to extract the images from the file.
It can also be used to re-create the object and embed the images in it.

http://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-lp_xmlconverter-tool

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
Not applicable
Hi Barry, thanks for your reply

This seems to be the answer I was looking for, thank you!


blob