xBimTeam / XbimExchange

XbimExchange contains several COBie schemas and serialisation functions as well as the Model Validation library adopted by theNBS digital toolkit.
https://xbimteam.github.io/
Other
46 stars 42 forks source link

Error. Null Reference Exception #51

Open nuggen6 opened 4 years ago

nuggen6 commented 4 years ago

Hi! I'm getting the following error:

Object reference not set to an instance of an object. at Xbim.COBieLite.XbimAttributedObject.GetAttributeValue(IIfcPropertyBoundedValue ifcPropertyBoundedValue) at Xbim.COBieLite.XbimAttributedObject.ConvertToAttributeType(IIfcProperty ifcProperty) at Xbim.COBieLite.CoBieLiteHelper.GetAttributes(IIfcObjectDefinition ifcObjectDefinition) at Xbim.COBieLite.FacilityType..ctor(IIfcBuilding ifcBuilding, CoBieLiteHelper helper) at Xbim.COBieLite.CoBieLiteHelper.d__81.MoveNext()

Running this code. I'm trying to save as json.

var helper = new CoBieLiteHelper(model);
var facility = helper.GetFacilities()?.FirstOrDefault();

Sample.zip

Thanks! nuggen