Skip to content

[Bug]: Failed converting .ifc file from Vectorworks #1617

@nilskopa

Description

@nilskopa

What happened?

I am encountering an issue while trying to convert an .ifc file which is exported from Vectorworks. The process fails, and the conversion does not complete successfully. We can also give you the failing file but it is confidential so we cant post it here. The process fails at this part of the code:

let fragmentBytes = await serializer.process({ bytes: ifcBytes, progressCallback: (progress, data) => { console.log(progress * 100) }, });;

Image

Full Code:

const serializer = new FRAGS.IfcImporter();
serializer.wasm = { absolute: true, path: "https://unpkg.com/web-ifc@0.0.71/" };

const ifcFile = await fetch(url);
const ifcBuffer = await ifcFile.arrayBuffer();
const ifcBytes = new Uint8Array(ifcBuffer);
let fragmentBytes = await serializer.process({
  bytes: ifcBytes,
  progressCallback: (progress, data) => {
    console.log(progress * 100)
  },
});

Version

0.0.71

What browsers are you seeing the problem on?

Microsoft Edge

Relevant log output

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions