LP_XML Converter Built-in images
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-03 12:02 PM
2013-04-03
12:02 PM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-05 10:14 PM
2013-04-05
10:14 PM
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 lineIf you named the file to "UI_PICT 1.png", there must be an error, you must name the file "GDLPict_1.png"
<GDLPict MIME="image/png" SectVersion="19" SectionFlags="0" SubIdent="1" path="GDLPict_1.png"></GDLPict> //Mind the Subident=1
Jochen Suehlo . AC12-28 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de
GDL object creation: b-prisma.de
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-06 11:27 AM
2013-04-06
11:27 AM
On the site opengdl.org written that you have an object to automatically generate commands for further work in XML converter
There are whether this object freely available for download? And where.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-08 08:14 AM
2013-04-08
08:14 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2013-04-09 10:06 AM
2013-04-09
10:06 AM
Joachim wrote:Of course i didn't name it UI_PICT 1.png...
If you named the file to "UI_PICT 1.png", there must be an error, you must name the file "GDLPict_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