License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

LP_XML Converter Built-in images

Anonymous
Not applicable
Hi,
I have some problems when trying to embed images in .gsm files. Documentation of LP_XML is so brief...

I have AC15 gsm with extern pictures in separate path - so they have to be loaded in AC15 Lib manager - i dont want this, i want 1 gsm with builtin images, so I convert the gsm to .xml easily, where I have in gdl script something like

UI_PICT "logo.png"... I change it to UI_PICT 1... then create line
<GDLPict MIME="image/png" SectVersion="19" SectionFlags="0" SubIdent="1" path="GDLPict_1.png"></GDLPict> //Mind the Subident=1

Now, when converting back to gsm, I got error from LP_XML - Error during conversion on line x, Error in image section 'GDLPict', invalid MIME type or Image
Png is valid image file, and its png, so the mime is valid too...

When trying to convert this xml to AC16 gsm with AC16 LP_XML its fine! But with AC15 LP_XML it fails like this. The gsm was created in AC15 and it works perfectly, but i just cant embed image into it...

I don't want to be mean but ArchiCAD API documentation, tool's quality, debugging chances and LP_XML documentation and errors handling are so bad ...
I just got 'Unexpected Exception' from LP_XML... i don't like this dev work.

Thx in advance, sorry for my English 😉
4 REPLIES 4
Jochen Suehlo
Moderator
For me the following code works:

<GDLPict MIME="image/png" path="Abtreter/abtreter_angle.png" SubIdent="1" platform="Win" SectVersion="19" SectionFlags="0"></GDLPict>
The path of the image must be (as I think) a subfolder of the path of the gsm-file.
UI_PICT "logo.png"... I change it to UI_PICT 1... then create line
<GDLPict MIME="image/png" SectVersion="19" SectionFlags="0" SubIdent="1" path="GDLPict_1.png"></GDLPict> //Mind the Subident=1
If you named the file to "UI_PICT 1.png", there must be an error, you must name the file "GDLPict_1.png"
Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
Anonymous
Not applicable
On the site opengdl.org written that you have an object to automatically generate commands for further work in XML converter
Jochen Sühlo has written a smart XML_generator_object ...
This object generates different commands or only for embedding images?
There are whether this object freely available for download? And where.
Frank Beister
Moderator
Embedding pictures is a torture for me too. Jochens tool is not freely available. At least there's no download link.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
Anonymous
Not applicable
Joachim wrote:
If you named the file to "UI_PICT 1.png", there must be an error, you must name the file "GDLPict_1.png"
Of course i didn't name it UI_PICT 1.png...
UI_PICT 1 is reference for source image 1 in xml file
In GLDImage tag is Path to GDLPict_1.png which is also the source image named on that correct path... As i said, works fine in AC16 LPXML, but there is a MIME/Image problem in AC15 LPXML