Export To XMLFileFormat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-15
06:54 AM
- last edited on
2021-09-14
09:50 AM
by
Noemi Balogh
But getting an error in "FormatXMLDoc(document, &xmlFile)" method and not getting any idea what's doing wrong here becuase in the Property_test Example add-on it works file.
Can anyone kindly help me on this?
N.B. Attached are the error and the code snippet for this.
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-27 12:00 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-18 09:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-19 05:25 AM
Viktor wrote:I am targeting Archicad version 24. And for Visual Studio IDE I have tried with both VS2017 and VS2019 but getting the same error.
I've checked with your settings, and it works fine for me. Could you please specify which Archicad version are you targeting, and what version of Visual Studio are you using?
N.B. For CMake build I have used VS2017.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-21 05:45 AM
Viktor wrote:Hi Viktor Kovacs, any suggestion or idea on this error, what's possibly I'm doing wrong here?
I've checked with your settings, and it works fine for me. Could you please specify which Archicad version are you targeting, and what version of Visual Studio are you using?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-26 04:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-27 10:33 AM
Viktor wrote:Dear Viktor Kovacs, Here I have attached the project in zip format.
Unfortunately I have no idea. If you have a minimal repro and you can attach it here as a zip file I can check it on my computer.
I have added the minimal code for the XML export that simulates my error.
You can find the XML export related code in TemplateDialog.cpp file.
N.B. Attached pic is the error snapshot I am facing and I have used the CMake build. (ARCHICAD 24 & VS2017)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-27 12:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2021-04-27 01:06 PM
Viktor wrote:Updated the CMakelists.txt file and seems the error has resolved.
I think I found the error. The CMake template is updated on GitHub, and it seems you started from the old version. Please try to modify your CMakeLists.txt like this:
https://github.com/GRAPHISOFT/archicad-addon-cmake/commit/646a7067667586e38eff3e3378d24de7f2c58abc
Thank you so much for your time and support.
