You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use following code to convert ifc file to wexbim. However I can't find a way to open Ifc file that comes as a Stream, e.g. MemoryStream. I don't have access to file system. Is there any way to open Ifc file and convert it to wexbim with the use of streams?
string ifcAbsolutePath = "c:\\file.ifc";
using (var wexBimStream = new MemoryStream())
using (var m = IfcStore.Open(ifcAbsolutePath))
{
var geomContext = new Xbim3DModelContext(m);
geomContext.CreateContext();
using (var bw = new BinaryWriter(wexBimStream))
{
m.SaveAsWexBim(bw);
bw.Close();
}
m.Close();
}
Regards
The text was updated successfully, but these errors were encountered:
Hi,
I use following code to convert ifc file to wexbim. However I can't find a way to open Ifc file that comes as a Stream, e.g. MemoryStream. I don't have access to file system. Is there any way to open Ifc file and convert it to wexbim with the use of streams?
Regards
The text was updated successfully, but these errors were encountered: