Closed garview closed 8 years ago
Are you able to share the original IFC file?
Of course. https://github.com/garview/files/raw/master/1/1.ifc The orginal file is too big to upload. But this 1.ifc can also reproduct this error.
BTW , could you reply the issue #401 ? It is asking for an api or example just like the API-1.png and example1.js in bimsurfer project. There would be very helpful for me to embed the 3D model in the other page with a clear and usable api.
regards
Thanks for reporting. The role of the function is to parse the \S\ encoding, which is part of the ISO-10303-21 standard. Unfortunately the standard lacks mentioning an order of preference of the different encoding types. Because of this lack, depending on the implementation the different encoding types can "steal" the other's backslashes.
I have changed the order now (\S\ will be last in processing), this makes the file you submitted work, but there are no guarantees for the future. Until a new version of the standard comes out we'll probably have to keep adjusting the algorithm until we will comply with most of the other software out there.
Thank you for the quick and helpful reply, it's really useful. related issue: #399 regards
log:
description: the error will be occured when the IfcParserWriterUtils proccess strings such as :'\X2\3010\X0\S\X2\301165E07F1D94A27BA1\X0-\X2\4E1D63A5\X0\'(Chinese charactors:【S】无缝钢管-丝接) The error will be disappeared when I commented out the code as following:(line100-106 in IfcParserWriterUtils )
Everything seems to be right(checkin , 3D displayed) after this modification. question1 What is the role of this section of the code? question2 Is there any problem with this fix?