-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing properties while converting IFC to JSON #57
Comments
I assume you are using At xbim ltd. we have a commercial cloud service where you could offload geometry processing (from IFC to wexbim) and get a scalable access to IFC data (JSON REST services). Let me know if you were interested. |
Hi, we are not able to get complete Json file, Some IFC properties are missing. Below is the code we are using in our application to convert JSON. using (var m = IfcStore.Open(IfcTestFile))
{
var xbimTestFile = Path.ChangeExtension(IfcTestFile, "xbim");
var jsonFile = Path.ChangeExtension(IfcTestFile, "json");
var helper = new COBieLite.CoBieLiteHelper(m, "UniClass");
var facilities = helper.GetFacilities();
var NewJsonFile = jsonFile;
foreach (var facilityType in facilities)
{
Assert.IsTrue(facilityType.FacilityDefaultLinearUnitSpecified);
Assert.IsTrue(facilityType.FacilityDefaultAreaUnitSpecified);
Assert.IsTrue(facilityType.FacilityDefaultVolumeUnitSpecified);
using (var fs = new StreamWriter(NewJsonFile))
{
Xbim.COBieLite.CoBieLiteHelper.WriteJson(fs, facilityType);
fs.Close();
}
}
} we are not able to export the properties (IFCCOVERING, IFCROOF,IFCSTAIR,IFCMEMBER,IFCSITE,IFCDOOR,IFCPLATE) Please help me on this. Kindly provide any c# code to convert IFC to JSON file (with exporting all properties without missing anything). Thanks in advance |
COBie specification states that some element types should not be exported. Feel free to change the settings or the code. |
Hi,
Hope you are doing well!!!
We have converted IFC file to JSON and WEXBIM format while uploading the IFC file in our web application.
After JSON conversion - some 'IFCCOVERING' type of properties are missing in JSON file. I have herewith attached the screenshot for your reference.
Kindly provide a sample c# code to convert IFC to JSON file (with exporting all properties without missing anything).
Thank you in advance.
The text was updated successfully, but these errors were encountered: