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

Special unicode characters used in Name of IFCWALL cause no geometry to be displayed. #512

Open
santiagoIT opened this issue Jul 21, 2023 · 2 comments

Comments

@santiagoIT
Copy link

If you open the attached file in XBimXplorer 4.0, no geometry is displayed at all.

Using XBimXplorer 5.1 very few IFC elements are displayed.

image

The file contains IFCWALL's which have a Name with uncommon unicode chars:
'\S\ ciana 1'

If \S\ is stripped out, all geometry displays fine.

image

might be useful:
BimVision displays all geometry, and just seems to ignore those chars.

unicodeCharIssue.zip

@andyward
Copy link
Member

Seems like there's a couple of different issues in this model throwing things out:

  1. The 0x0C (ASCII 12 = Form Feed?) in the unicode character name. E.g. on IfcWall Entity 1777
  2. Invalid parameter 5 on IfcRelVoidsElement ( # -1)

Issue 2 needs fixing at the source as it's just invalid output.
Issue 1 we'd need to check with the Parser experts (@martin1cerny or @CBenghi ) - I'm not sure if this is valid, but I guess we could at least be more graceful of invalid ASCII chars in the input.

image

When I spotfixed the data by removing the invalid characters we got a much better result

image

The lack of openings in the walls is likely down to Issue 2

@martin1cerny
Copy link
Member

IFC is defined to be an ASCII file, so Unicode characters are not allowed. However, I'll have a look how we can handle it better in the parser to make it more resilient.

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

3 participants