SOLVED!
Location of picture referenced with index
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-15 09:47 AM
‎2019-05-15
09:47 AM
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
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-15 09:59 AM
‎2019-05-15
09:59 AM
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.
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.
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
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
2 REPLIES 2
Solution

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-15 09:59 AM
‎2019-05-15
09:59 AM
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.
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.
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2019-05-15 10:11 AM
‎2019-05-15
10:11 AM
Hi Barry, thanks for your reply
This seems to be the answer I was looking for, thank you!
blob
This seems to be the answer I was looking for, thank you!
blob