xBimTeam / XbimExchange

XbimExchange contains several COBie schemas and serialisation functions as well as the Model Validation library adopted by theNBS digital toolkit.
https://xbimteam.github.io/
Other
46 stars 42 forks source link

Serialization of IfcStore.Instances not possible #42

Open westake opened 5 years ago

westake commented 5 years ago

Hi team,

I try to find a way to serialize lists of IIfcProduct extracted from IfcStore.Instances, representing the content of different submodels (like floors or spaces). I tried without success to serialize as xml, json, binary...

Context:

A possible approach:

Why?

Are there any helpers / components or a better approach to achieve my goal? I highly appreciate any suggestions.

Thank you! Alex

I-Sokolov commented 5 years ago

It seems you are in the direction to BCF

andyward commented 5 years ago

I think this got discussed over on https://github.com/xBimTeam/XbimEssentials/issues/256

There's no easy answer to this... It also depends on the use cases and a lot of other considerations such as access control, audit trails etc. At a simplistic level, the Esent model was intended for this kind of purpose. i.e. a persistent, indexed random-access means to query and manipulate IFC models. But I know it's not the perfect solution - there's a lot you need to layer on top for a web app.

(We've got a PaaS service based on XBIM that might help with this kind of scenario)