xBimTeam / XbimEssentials

A .NET library to work with data in the IFC format. This is the core component of the Xbim Toolkit
https://xbimteam.github.io/
Other
494 stars 173 forks source link

EntityModel does not implement Ctor taking EntityFactoryResolverDelegate #530

Open andyward opened 11 months ago

andyward commented 11 months ago

MemoryModel has constructor overloads that take an EntityFactoryResolverDelegate - which allows the EntityFactory to be determined once the header has been read, meaning a single parse.

EsentModel does not provide this overloaded ctor, so the consumer needs to know in advance - and this constraint is then enforced on higher level services in the IModelProviders and IfcStore.

This becomes an issue when models are provided in IO.Streams as not all are seekable.