yorikvanhavre / BIM_Workbench

A BIM Workbench for FreeCAD
363 stars 77 forks source link

Redesign IFC properties #81

Open bje- opened 3 years ago

bje- commented 3 years ago

I am trying to add some custom properties to objects in FreeCAD so that they appear in the exported IFC file. Do these need to be added in a particular way for this to happen?

yorikvanhavre commented 3 years ago

Sorry, I ended up overlooking this :grimacing: There is currently no way to do this apart from using the IFC properties manager. There, you can create an IFC property set and adding custom properties to it.

But there is some time I think we should switch to a full FreeCAD properties system. That is, all the IFC properties appear in the FreeCAD object properties, and vice-versa (all FreeCAD object properties are saved to IFC).

This is a good opportunity to define how to do this. The problems I see:

We could do this in different steps:

  1. Keep everything as it is, and additionally export some FreeCAD custom properties as IFC properties
  2. Find a system to deal with different or unsupported property types
  3. Migrate the current IfcProperties dict to FreeCAD properties
  4. Redesign the IFC Properties manager
bje- commented 3 years ago

Sounds good. I am not a FreeCAD developer, I just want something That Works. :-)

yorikvanhavre commented 2 years ago

Redesign plan

Sync between IFC properties and FreeCAD properties

In Arch:

In BIM:

yorikvanhavre commented 2 years ago

First test in 123440c