cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Location of picture referenced with index

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 Solution

Accepted Solutions
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

Go to post

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

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


blob

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!