Archicad C++ API
About Archicad add-on development using the C++ API.

LP_XML lower than 16 dont support builtin images?

Anonymous
Not applicable
Hi,
I don't have any problem embedding images in gsm with LP_XMLConverter.exe for AC16 and AC17, but for AC15 and lower I get this error

foo.xml(19098) : error: Error in image section 'GDLPict'; Invalid MimeType or Image

In XML I have this simple tag...

<GDLPict MIME="image/png" SectVersion="19" SectionFlags="0" platform="Win" SubIdent="112" path="body/36.png"></GDLPict>

as I said, works for >LPXML16 but not for <16

For jpeg its the same
3 REPLIES 3
Anonymous
Not applicable
Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Thanks all!
Akos Somorjai
Graphisoft
Graphisoft
Jiuzhu wrote:
Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Thanks all!
Hi,

Which version of LP_XMLConverter do you use?

If you start LP_XMLConverter with the 'help' parameter, then it'll list all the possible commands. The one that converts a GSM object to XML source is 'libpart2xml'.

After getting the XML source you can add the GDLPict section to the .xml file.

Do you see any error message in the cmd prompt when the LP_XMLConverter.exe crashes?

Regards, Akos
Anonymous
Not applicable
Akos wrote:
Jiuzhu wrote:
Hi!
I had a few problems when I used "LP_XMLconverter.exe" to embed images in gsm.
The first problem is how to exchange gsm to xml format?and how to exchange xml to gsm?
The second problem is when I used "LP_XMLconverter.exe",it always automatically quit.
The third problem is about the edit command:
<GDLPict MIME="image/png"
path="bim构件图片/Kinnarps_logo.png"
SubIdent="1"
platform="Win"
SectVersion="18"
SectionFlags="0">
</GDLPict>
where should I write the command?write with "LP_XMLconverter"?
Thanks all!
Hi,

Which version of LP_XMLConverter do you use?

If you start LP_XMLConverter with the 'help' parameter, then it'll list all the possible commands. The one that converts a GSM object to XML source is 'libpart2xml'.

After getting the XML source you can add the GDLPict section to the .xml file.

Do you see any error message in the cmd prompt when the LP_XMLConverter.exe crashes?

Regards, Akos
Hi!

Thank you for your answer!

But how to start LP_XMLConverter with the 'help' parameter?

I used the LP_XMLconverter is belong to Archicad 18.There had no any

error message in the cmd prompt when the LP_XMLConverter.exe

crashes .

It just had a short time to running and then automatically quit.

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!