engine_web-ifc icon indicating copy to clipboard operation
engine_web-ifc copied to clipboard

IFCTEXT with length > 256: the last 256 chars get cut of the text

Open elyrank opened this issue 2 years ago • 2 comments

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

elyrank avatar Feb 16 '22 12:02 elyrank

This issue is now a bounty. Whoever solves this will get $200. More information here.

agviegas avatar May 15 '22 23:05 agviegas

Hi, in APOGEA we are taking care of this Issue

QuimMoya avatar May 17 '22 03:05 QuimMoya

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

image

TxTony avatar Oct 08 '22 12:10 TxTony

Hi TxTony

This issue is already solved. We forget to remove it. Thanks.

QuimMoya avatar Oct 10 '22 04:10 QuimMoya