I come to you because I need help.
I see that IfcConvert is able to convert an ifc file to many other formats, including xml.
I wanted to know if it was possible with this tool to do the reverse process, ie to convert an xml file (made using the xsd file) into an ifc file.
Thanks in advance for all the answers.
Best regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The XML output of IfcConvert is an extract that contains a subset of the semantic information and no geometry (it is meant to be used in conjunction with the geometric extracts such as OBJ and DAE). So by definition this is not possible.
If you mean convert IfcXML to IFC-SPF you could probably do that using IfcOpenShell (it can parse IfcXML, but not write). It is not an option in the IfcConvert command line tool though at the moment. So you'd have to write a minimal program in Python or C++.
Kind regards,
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I come to you because I need help.
I see that IfcConvert is able to convert an ifc file to many other formats, including xml.
I wanted to know if it was possible with this tool to do the reverse process, ie to convert an xml file (made using the xsd file) into an ifc file.
Thanks in advance for all the answers.
Best regards,
Hi,
The XML output of IfcConvert is an extract that contains a subset of the semantic information and no geometry (it is meant to be used in conjunction with the geometric extracts such as OBJ and DAE). So by definition this is not possible.
If you mean convert IfcXML to IFC-SPF you could probably do that using IfcOpenShell (it can parse IfcXML, but not write). It is not an option in the IfcConvert command line tool though at the moment. So you'd have to write a minimal program in Python or C++.
Kind regards,
Thomas