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

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

Closed
elyrank opened this issue Feb 16, 2022 · 4 comments
Closed

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

elyrank opened this issue Feb 16, 2022 · 4 comments
Assignees

Comments

@elyrank
Copy link

elyrank commented Feb 16, 2022

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

@agviegas
Copy link
Collaborator

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

@QuimMoya
Copy link
Contributor

QuimMoya commented May 17, 2022

Hi, in APOGEA we are taking care of this Issue

@TxTony
Copy link
Contributor

TxTony commented Oct 8, 2022

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

@QuimMoya
Copy link
Contributor

Hi TxTony

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

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

4 participants