Skip to content

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

@ThomasTJdev

Description

@ThomasTJdev

Big congrats on the library - this is really awesome!! I have been testing the lib with the PR at threejs (mrdoob/three.js#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions