question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to load IFC-file, possible due to `Unexpected profile type`

See original GitHub issue

Big congrats on the library - this is really awesome!! I have been testing the lib with the PR at threejs (https://github.com/mrdoob/three.js/pull/20598), but I can only get the example IFC-files to load. I have tried with some of my other IFC files, but with no luck. These are files works when converted from IFC to gTLF.

When importing a file, this is the result from console.log:

Log: Importing IFC file
Wrote file
web-ifc-api.js:881 Loading: example.ifc
web-ifc-api.js:881 Read 
web-ifc-api.js:881 Loading 
web-ifc-api.js:881 Tape 11656886
web-ifc-api.js:881 Lines normal 276111
web-ifc-api.js:881 Max express ID 487286
web-ifc-api.js:881 Loaded 276111 lines in 55 ms!
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 50197
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 50292
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51095
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51178
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51260
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51342
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51424
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51506
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51588
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51670
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51752
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51834
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51916
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 51998
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 52080
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 52162
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 52244
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 52326
web-ifc-api.js:881 Unexpected mesh type: 2736907675 at 57833
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 57994
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 58076
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 58158
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 68216
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 68293
web-ifc-api.js:881 Unexpected mesh type: 2736907675 at 73356
web-ifc-api.js:881 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfUnexpected profile type: 1484403080 at 331613
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 331695
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 331776
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 331857
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 331938
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332019
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332100
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332181
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332262
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332343
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332424
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332505
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332586
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332667
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332748
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332829
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332910
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 332991
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 335722
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 335803
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 336120
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 336201
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 336518
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 336599
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 336916
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 336997
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 337314
web-ifc-api.js:881 Unexpected profile type: 1484403080 at 337395
web-ifc-api.js:881 asdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfUnexpected profile type: 1484403080 at 68368
6web-ifc-api.js:881 Unexpected profile type: 1484403080 at 68368
web-ifc-api.js:881 asdfasdfasdfasdfasdfasdfasdfasdfUnexpected profile type: 1484403080 at 333871
25

The corresponding lines in the IFC-file is:

Log: Corresponding lines in IFC file
#50197= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_HE300A',#50196,300.000000000001,289.999999999999,8.49999999999807,14.0000000000011,27.0000000000003);
...
#51342= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE300',#51341,150.000000000009,300.,7.09999999979711,10.7000000000008,14.9999999999923);
#51424= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE300',#51423,150.000000000009,300.,7.09999999979711,10.7000000000008,14.9999999999923);
#51506= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE300',#51505,150.000000000009,300.,7.09999999979711,10.7000000000008,14.9999999999923);
#51588= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE300',#51587,150.000000000009,300.,7.09999999979711,10.7000000000008,14.9999999999923);
#73356= IFCBOOLEANRESULT(.DIFFERENCE.,#73347,#73355);
#331613= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#331612,73.0000000000007,140.,4.69999999999893,6.90000000000083,6.99999999999873);
...
#331695= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#331694,73.0000000000007,140.,4.69999999999893,6.90000000000083,6.99999999999873);
#331776= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#331775,73.0000000000007,140.,4.69999999999893,6.90000000000083,7.00000000000207);
#331857= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#331856,73.0000000000007,140.,4.69999999999893,6.90000000000083,7.00000000000207);
#331938= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#331937,73.0000000000007,140.,4.69999999999893,6.90000000000083,7.00000000000207);
...
#332910= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#332909,73.0000000000007,140.,4.69999999999893,6.90000000000083,7.00000000000207);
...
#336916= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#336915,73.0000000000007,140.,4.69999999999893,6.90000000000083,7.00000000000207);
...
#337395= IFCISHAPEPROFILEDEF(.AREA.,'Beam_Steel_IPE140',#337394,73.0000000000007,140.,4.69999999999893,6.90000000000083,7.00000000000207);
#68368= IFCISHAPEPROFILEDEF(.AREA.,'Column_Steel_HE200B',#68367,200.,200.,9.,15.,18.);
#333871= IFCISHAPEPROFILEDEF(.AREA.,'Column_Steel_IPE140',#333870,73.,140.,4.70000000000001,6.9,6.99999999999997);

Can I provide any other debugging info for you?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

3reactions
agviegascommented, Mar 22, 2021

Thanks @ThomasTJdev! We will implement IfcIShapeProfileDefs these days. We don’t need additional information; once we make the first step, we will let you know to see if it’s solved.

1reaction
agviegascommented, Jun 6, 2021

@ThomasTJdev Great! Keep in mind that these changes need some days to reflect on the other repos. Also, beware that the last changes regarding IFC functionality are in web-ifc-three.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to open or link a specific IFC file in Revit, in ...
Issue: IFC file cannot be opened or linked in Revit, BIM 360 or in Navisworks, using the "Modern" IFC Conversion Method.
Read more >
IFC file doesnt load correctly · Issue #21 · IFCjs/web-ifc - GitHub
The bug was caused by a change between IFC2x3 and IFC4 for type property SelfIntersect in IfcCompositeCurve which used to be LOGICAL (...
Read more >
ifc.js - Unexpected style type message when loading model
It means that there's something that hasn't been implemented in web-ifc yet. You can create an issue in web-ifc to request for the ......
Read more >
BIG-IP 14.1.4.4 Fixes and Known Issues - AskF5
940021-2, 2-Critical, Syslog-ng hang may lead to unexpected reboot. 932437-4, 2-Critical, Loading SCF file does not restore files from tar file☆.
Read more >
Details of the Mapping Between the CIS/2 and IFC Product ...
and export only IFC files and not CIS/2 files. Most software specific to structural steel design, structural analysis, detailing, and fabrication only ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found