I have an XML file containing the registered real-estate data and want to export it as an IFC file. What is the procedure to get the geometries and their atributes out of that file.
As I have read, the first step is to use the XMLFlattener. But I do not know on which level do I have to flatten it (Elements to match). There are a lot of nested paths. If I select one path, do I have to select the paths under it? And this flattening process takes a really long time!
What is the solution?
I would appreciate your help.
Best answer by kailinatsafe
Hello @n.d, thanks for posting! Are you using the XML or GML Reader? If the XML contains geometry or it is a GML file, there may be a chance the GML Reader could automatically recognize the geometry on read. Otherwise, are you able to share a sample XML file containing a couple sample features for testing?
Not too familiar with IFC Writing, but this article demonstrates how to write custom property sets. I recommend downloading the article workspace and stepping through the tutorial before applying concepts to your own data! Happy to help, Kailin.
Hello @n.d, thanks for posting! Are you using the XML or GML Reader? If the XML contains geometry or it is a GML file, there may be a chance the GML Reader could automatically recognize the geometry on read. Otherwise, are you able to share a sample XML file containing a couple sample features for testing?
Not too familiar with IFC Writing, but this article demonstrates how to write custom property sets. I recommend downloading the article workspace and stepping through the tutorial before applying concepts to your own data! Happy to help, Kailin.
I imported it as a GML file. I skipped the flattening process. That was a good trick.
The other problem was with the Geometry. It couldn’t be written to the IFC. But after trying several Geometry tranformers, I could have my geometries written in the IFC file.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.