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

[Bug]: GetLine() output of Boolean attributes #1257

Open
andy-wrks opened this issue Feb 9, 2025 · 0 comments
Open

[Bug]: GetLine() output of Boolean attributes #1257

andy-wrks opened this issue Feb 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@andy-wrks
Copy link

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.);
Image

I get the following object from GetLine():
Image

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

@andy-wrks andy-wrks added the bug Something isn't working label Feb 9, 2025
@andy-wrks andy-wrks changed the title [Bug]: GetLine() output of Booleans attributes [Bug]: GetLine() output of Boolean attributes Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant