hal9000plus / bimserver

Automatically exported from code.google.com/p/bimserver
0 stars 0 forks source link

Non-optional attributes with default value set (e.g. INTEGER with value 0) are serialized as unset ($) #383

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create project, import model containing an entity like 
IFCDIMENSIONALEXPONENTS(0,0,0,0,0,0,0)
2. Download the model as IFC2X3, observe that the entity is serialized as 
IFCDIMENSIONALEXPONENTS($,$,$,$,$,$,$)
3. Some applications (like Solibri Model Viewer) fails to load the model.

What is the expected output? What do you see instead?

As the attributes for IFCDIMENSIONALEXPONENTS are not OPTIONAL, I expect the 
entity to be exported as IFCDIMENSIONALEXPONENTS(0,0,0,0,0,0,0) .

What version of the product are you using? On what operating system?
bimserver trunk, r1726

Original issue reported on code.google.com by kvh...@gmail.com on 29 Feb 2012 at 12:57

GoogleCodeExporter commented 8 years ago
I have attached a patch which seems to fix this issue for the models I have 
tested so far. This checks that the attribute (StructuralFeature) is unsettable 
before checking if it is set.

Kristian

BTW, this issue was reported by me, using a different gmail account.

Original comment by kristian...@catenda.no on 29 Feb 2012 at 1:19

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ru...@logic-labs.nl on 16 Mar 2012 at 11:19