OSArch Community

[IfcOpenShell-Python] Method to close a file is missing?

  1. M
  2. V

    @Martin156131 I don't think you need to worry about that. When you run ifcopenshell.open(), what you get back is the base class for handling ifc files. There's nothing you need to close, and there's not really a need for 'with' in this case.

  3. G

    AFAIK it's not keeping the file open, it's reading its content, recreating it in memory, and then closing the file, all in ifcopenshell.open. When you save the blend file down the line the ifc file is overwritten with new information.

Login or Register to reply.