Skip to content
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

Error. Null Reference Exception #51

Open
nuggen6 opened this issue Dec 13, 2019 · 0 comments
Open

Error. Null Reference Exception #51

nuggen6 opened this issue Dec 13, 2019 · 0 comments

Comments

@nuggen6
Copy link

nuggen6 commented Dec 13, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant