Description
What happened?
I'm using GetLine() to read an IfcWindowStyle entity and I realized that the boolean attributes are hard to identify from the returned object.
This is the raw line:
#150288=IFCWINDOWSTYLE('2oBbts7bIYPxtVzht3Nx15',#30,'Kombi-Fenster 1-Fl 22',$,$,$,$,'B22E5DF6-1E54-A267-BDDF-F6BDC35FB045',.NOTDEFINED.,.NOTDEFINED.,.F.,.F.);
I get the following object from GetLine():
The highlighted boolean enumeration values "F" show up differently than the "NOTDEFINED" enumeration values. Is there a reason the booleans don't show up as {type: 3, value: 'F'}? I wasn't expecting a naked string here that's not wrapped in the usual value/type object. It also makes it hard to identify booleans when they're not tagged as an enumeration. It may just be a string 'F', it's hard to know.
It would be great if the IfcBooleans and IfcLogicals would show up consistently like other enumerations.
A related question: I came across objects like {type: 10, value: [1, 2, 3, 4]}. Type=10 stands for Integer. Can this refer to single values as well as an array of Integers? Does this apply to all types? I couldn't find any documentation on this other than the type map in some code file.
Thanks for the great work on web-ifc!
Version
0.0.66
What browsers are you seeing the problem on?
Chrome
Relevant log output
Anything else?
No response