GDL
About building parametric objects with GDL.
SOLVED!

How to bind image files into the gsm object file

easyDoesIt
Booster

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
Brisbane, Australia
1 ACCEPTED SOLUTION

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

View solution in original post

2 REPLIES 2
Solution
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

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
Brisbane, Australia