cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
easyDoesIt
Enthusiast

How to bind image files into the gsm object file

I recall there is a way to bind images used within the interface into the gsm file, so they don't have to be separate. I have had a look through the LP_XMLConverter thinking it would be done here but can't find it. Can it be done?

Cheers, Mark
archibites.tech | Wet Area Tool | Door Circulation Compliance | Multi-Label | Roof Slope | Wall Type Label
Brisbane, Australia
Windows based system on all versions of Archicad
1 Solution

Accepted Solutions
Zsuzsanna Bori
Graphisoft
Graphisoft

Hi! 

Yes, there is a way.

1. Use LP_XMLConverter to turn your .gsm into hsf file format

2. In the hsf folder structure create an "images" folder next to your "scripts" folder and put your images there

3. Open the libpartdata.xml file to refer to your images

More on hsf source format and libpartdata.xml and its syntax on the GDL Center

4. Use LP_XMLConverter to turn your hsf back to .gsm

5. Refer to your images by their number in your code! 

Let me know if you have any other questions! 

 

Best regards,

Zsuzsi

Go to post

7 Replies 7
Zsuzsanna Bori
Graphisoft
Graphisoft

Hi! 

Yes, there is a way.

1. Use LP_XMLConverter to turn your .gsm into hsf file format

2. In the hsf folder structure create an "images" folder next to your "scripts" folder and put your images there

3. Open the libpartdata.xml file to refer to your images

More on hsf source format and libpartdata.xml and its syntax on the GDL Center

4. Use LP_XMLConverter to turn your hsf back to .gsm

5. Refer to your images by their number in your code! 

Let me know if you have any other questions! 

 

Best regards,

Zsuzsi

easyDoesIt
Enthusiast

Thanks Zsuzsi,

 

There's a few manual steps there for a library with many objects, pity it is not more automated but will look into it.

Cheers, Mark
archibites.tech | Wet Area Tool | Door Circulation Compliance | Multi-Label | Roof Slope | Wall Type Label
Brisbane, Australia
Windows based system on all versions of Archicad
Jim Allen
Advisor

Can this be used to embed textures into gsm objects?
If you have a large number of objects (it's vegetation models I'm working with) you don't want to create library files for them, you just want a gsm object with everything embedded.

 

If the LP_XMLConverter is the only way to do this, can it be automated using AI coding tools?

 

It might be something the Graphisoft team might be able to test and report on, because we have been asked about AI tools to assist with GDL scripting. Adding the ability to do this easily would be really helpful because using the command line is a little cumbersome.

Archicad 28 UKI | OS X 14.7 Sonoma
Jochen Suehlo
Moderator Emeritus

@Jim Allen  schrieb:

..., because we have been asked about AI tools to assist with GDL scripting. 


I wrote about a GDL Development Environment on my website: 
https://www.b-prisma.de/develop/gdl-development-environment/

GDLnucleus and GDLnucleus light are able to do the jobs without the command line.

Jochen Suehlo . AC12-29 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Jim Allen
Advisor

Thanks!

 

Can it batch process folders of files?

I used Perplexity to search for this and found that LP_XMLConverter can apparently.

 

I have a lot of files to process so automating it for an entire folder is what is really required.

 

Does anyone have any scripts that can be used to automate this? 

 

Archicad 28 UKI | OS X 14.7 Sonoma
Jochen Suehlo
Moderator Emeritus

@Jim Allen  schrieb:

Thanks!

 

Can it batch process folders of files?

Does anyone have any scripts that can be used to automate this? 

 


Yes, it can batch process folders with files. And the scripts runs automatically.
You only need to download the files and to download and install Visual Studio code.

Jochen Suehlo . AC12-29 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Jim Allen
Advisor

Sounds perfect - thanks!

Archicad 28 UKI | OS X 14.7 Sonoma

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!