OSArch Community

BB: upgrade/downgrade between IFC4 or IFC2x3

  1. T

    Is there a relatively easy way to upgrade/downgrade between IFC4 or IFC2x3, with BB?

  2. C

    I just did an attempt with your model from the other thread.

    Openened two sessions of BlenderBIM,

    • Imported the IFC4 in one session

    • Started a New IFC2x3 project in the other BlenderBIM sessions

    • Copied all the meshes to the IFC2x3 project.

    • Tried to re-assign all the meshes/IFC elements

    Got this error:

    
    AttributeError: entity instance of type 'IFC2X3.IfcPolyLoop' has no attribute 'Name'
    

    Now it's beyond my knowledge. I'm tempted to say it's not possible.

  3. C

    Tried to ignore all the error warnings and kept on going, by when I wanted to export the IFC2x3. I got this warning

    AttributeError: entity instance of type 'IFC2X3.IfcFaceOuterBound' has no attribute 'ContextOfItems'

  4. C

    I succeeded half, but it an extremely hacky way and probably lost all the data attached to the IFC elements.

  5. G
  6. B

    Hope it helps

  7. M

    Yeah so the Migrate IFC patch does a pretty swell job at upgrading IFC2X3 to IFC4 (specify ["IFC4"] as an argument). However, although in theory it can downgrade, it would likely fail on a real project (it'll work for small subsets of data, though). This is because I never wrote the code to handle downgrading certain IFC4 geometry types since I never needed it and it was more urgent to upgrade than downgrade.

    But let me know if you need downgrading and I can find a bit of time to implement it. It's pretty straightforward, just another item in the endless todo list.

  8. M

    What's pretty awesome too is that in the latest BlenderBIM Add-on builds since this is such a common thing, there is now a one-button upgrade whilst you're loading files:

  9. L

    the argument for downgrading is then 'IFC2X3' ?

Login or Register to reply.