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

Location of picture referenced with index

Anonymous
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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), 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
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Hi Barry, thanks for your reply

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


blob