engine_web-ifc
engine_web-ifc copied to clipboard
IFCTEXT with length > 256: the last 256 chars get cut of the text
I have this IFCTEXT for example: #654=IFCPROPERTYSINGLEVALUE('WWW XY Polygon',$,IFCTEXT('634515a696_750109a908z634519.707_750124a88z634551a707_750124a88z634551a707_750080.88z634499.796_750067.937z634483.721_750036.587z634558.04_750031.391z634558.482_750031.723z6346510123456789001234567890AAAAAAAAAABBBBBBBBB0123456789C0123456789D0123456789E4567123'),$);
it fails because the length > 256 the result is : "123" when I remove a few chars, I see all the text gets read properly
This issue is now a bounty. Whoever solves this will get $200. More information here.
Hi, in APOGEA we are taking care of this Issue
Hi @elyrank @QuimMoya @agviegas
Could you provide the entire ifc model ? when i try with your given line i received the correct length.
the current string has 259 chars.
634515a696_750109a908z634519.707_750124a88z634551a707_750124a88z634551a707_750080.88z634499.796_750067.937z634483.721_750036.587z634558.04_750031.391z634558.482_750031.723z6346510123456789001234567890AAAAAAAAAABBBBBBBBB0123456789C0123456789D0123456789E4567123
Is this already solved ? or am i missing something ?
{
"name": "web-ifc",
"version": "0.0.36",
}
let ifcApi = new WebIFC.IfcAPI();
let line = ifcApi.GetLine(0, 654);
expect(line.NominalValue.value.length).toEqual(259);
Get line result
Hi TxTony
This issue is already solved. We forget to remove it. Thanks.