public static async Task <Stream> ConvertAsync(Stream ifcStream)
        {
            var ifcStoreGenerator = new IfcStoreGenerator(ifcStream);

            using (var ifcStore = await ifcStoreGenerator.GetIfcStoreAsync())
            {
                return(await ConvertIfcToCobieLiteUkAsync(ifcStore));
            }
        }
Example #2
0
        public async Task <String> ConvertAsync(string source, string destination)
        {
            var content = await _s3.Get(source);

            using (var ifcStream = new MemoryStream(content))
            {
                var ifcStoreGenerator = new IfcStoreGenerator(ifcStream);
                using (var ifcStore = await ifcStoreGenerator.GetIfcStoreAsync())
                {
                    return(await ConvertIfcToCobieLiteUkAsync(ifcStore, destination));
                }
            }
        }
Example #3
0
        public async Task <String> ConvertAsync(String source, string destination)
        {
            var content = await _s3.Get(source);

            using (var ifcStream = new MemoryStream(content))
            {
                var ifcStoreGenerator = new IfcStoreGenerator(ifcStream);
                using (var ifcStore = await ifcStoreGenerator.GetIfcStoreAsync())
                {
                    var wexBimStream = await ConvertIfcToWexBimAsync(ifcStore, destination);

                    return(wexBimStream);
                }
            }
        }