AddModelReference to add ifc reference file
Hi,
I want to show the mechanical and architectural models together in the XbimWeb viewer. For that I added the architectural model as a reference using the following code
m_Model.AddModelReference(FilePath, "RefModel", "Architecture");
Then I saved and converted this ifc file to wexbim file. Is this enough to show the referenced wexbim file in the viewer? Or should i open both these files manually after checking if there is a reference file?
You need to process both models separately to create their wexbim representation. You can then load both in the viewer.
How can I find if there is a referenced model in the opened ifc file? Even if I added the Architecture file as model reference (as I told above), its not showing as a referenced model while trying to get the data.
And here is the screenshot of ifc file which has the referenced file
You need to open and convert all models independently. This federation allows you to query the semantic IFC data as one model, but doesn't create a unified wexBIM file.