Пример #1
0
        public static CobieModel OpenStep21Zip(string input, bool esentDB = false)
        {
            var provider = ModelProviderFactory.CreateProvider();

            var model = provider.Open(input, XbimSchemaVersion.Cobie2X4);

            return(new CobieModel(model));
        }
Пример #2
0
        public static CobieModel OpenEsent(string esentDB)
        {
            var provider = ModelProviderFactory.CreateProvider();

            var model = provider.Open(esentDB, XbimSchemaVersion.Cobie2X4, accessMode: XbimDBAccess.ReadWrite);

            return(new CobieModel(model));
        }
Пример #3
0
        public static CobieModel OpenStep21(string input, bool esentDB = false)
        {
            var provider = ModelProviderFactory.CreateProvider();
            XbimSchemaVersion ifcVersion = GetSchemaVersion(input, provider);

            var model = provider.Open(input, ifcVersion);

            return(new CobieModel(model));
        }
Пример #4
0
        public static CobieModel OpenStep21(Stream input, long streamSize, bool esentDB = false)
        {
            var provider  = ModelProviderFactory.CreateProvider();
            var modelType = esentDB ? XbimModelType.EsentModel : XbimModelType.MemoryModel;
            // TODO: Should determine the schema. not hardwire
            var model = provider.Open(input, StorageType.Stp, XbimSchemaVersion.Ifc4, modelType);

            return(new CobieModel(model));
        }
Пример #5
0
 // Internal Constructor for reading
 protected IfcStore()
 {
     ModelProvider = ModelProviderFactory.CreateProvider();
 }