XbimWebUI icon indicating copy to clipboard operation
XbimWebUI copied to clipboard

AddModelReference to add ifc reference file

Open Anu004 opened this issue 4 years ago • 2 comments

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?

Anu004 avatar Apr 12 '21 11:04 Anu004

You need to process both models separately to create their wexbim representation. You can then load both in the viewer.

martin1cerny avatar Apr 12 '21 12:04 martin1cerny

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.

ref

And here is the screenshot of ifc file which has the referenced file

ref ifc

Anu004 avatar Apr 12 '21 13:04 Anu004

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.

martin1cerny avatar Dec 09 '22 15:12 martin1cerny