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

[Bug]: GetLine fails when flatten=true in some models

Open agviegas opened this issue 5 months ago • 0 comments

What happened?

The function GetLine has the following signature:

IfcAPI.GetLine(     
   modelID: number,     
   expressID: number,     
   flatten?: boolean | undefined,     
   inverse?: boolean | undefined,     
   inversePropKey?: string | null | undefined
): any

Using flatten=true fails with some models. Here's a list (it's probably the same problem in all of them):

With this model:

GetLine(0, 39445, true) // fails

With this model:

GetLine(0, 346854, true) // fails
GetLine(0, 333704, true) // fails

With this model:

GetLine(0, 333704, true) // fails
GetLine(0, 337717, true) // fails

Version

0.0.57

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

Anything else?

No response

agviegas avatar Aug 28 '24 15:08 agviegas