FreeCAD icon indicating copy to clipboard operation
FreeCAD copied to clipboard

BIM: NativeIFC 2D support

Open yorikvanhavre opened this issue 1 year ago • 9 comments

This is support for 2D objects in NativeIFC. Corresponds to item 6.A from https://github.com/yorikvanhavre/FreeCAD-NativeIFC/blob/main/doc/roadmap2024.md

With this, one is now able to embed 2D objects (linework, texts, dimensions) inside IFC files, as well as handle such entities produced by other BIM apps (Basically BlenderBIM/Bonsai), and define "Drawings", which are basically a section plane inside a group, which can contain other 2D entities too that compose the drawing.

One can now create groups inside IFC documents and place section planes inside, and these are interpreted correctly by BlenderBIM/Bonsai too.

  • [x] Basic import/export structure
  • [x] Support for linework
  • [x] Support for texts
  • [x] Support for dimensions
  • [x] Support for hatches
  • [x] Support for section planes (drawings)
  • [x] Support for axes (needs some refactor of the Axis VP later on)
  • [x] 2D elements grouped into a group with ObjectType == "DRAWING" should be imported as one (expandable) drawing object
  • [x] 2D elements under root: A new Drawing object should be created

yorikvanhavre avatar Sep 18 '24 08:09 yorikvanhavre

Small things missing:

  • [x] Groups containing an IFCAnnotation with ObjectType == "DRAWING" should also get their ObjectType = "DRAWING" (needed for BBIM to recognize them as drawings)
  • [x] 4-point FreeCAD dimensions are interpreted as 3 dimensions by BBIM. Need to either coordinate with them, or change ours (which is now provisorily done in 7dfe616)

yorikvanhavre avatar Sep 30 '24 13:09 yorikvanhavre

Looked at this at the merge meeting but it still has conflicts. Could you please resolve them?

maxwxyz avatar Nov 22 '24 17:11 maxwxyz

Hopefully all conflicts fixed now!

yorikvanhavre avatar Nov 25 '24 11:11 yorikvanhavre

Hi ! I'd like to test and provide feedback in the coming days. Mind waiting a bit before merging ? Thanks =D

marcuspollio avatar Nov 29 '24 11:11 marcuspollio

@yorikvanhavre still has a conflict. @marcuspollio until when will you be able to test?

maxwxyz avatar Dec 02 '24 09:12 maxwxyz

Conflict solved!

yorikvanhavre avatar Dec 03 '24 14:12 yorikvanhavre

@yorikvanhavre new conflicts again :) @marcuspollio FYI

maxwxyz avatar Dec 06 '24 07:12 maxwxyz

Hopefully fixed again :sweat_smile:

yorikvanhavre avatar Dec 06 '24 13:12 yorikvanhavre

Will fix the lint :)

yorikvanhavre avatar Dec 09 '24 17:12 yorikvanhavre