Autodesk / revit-ifc

IFC for Revit and Navisworks (2019+)
477 stars 194 forks source link

Wish: Export calculated and combined schedule fields to properties #60

Open eibre opened 5 years ago

eibre commented 5 years ago

Schedules with calculated or/and combined fields: image

Wish that it can look like this in Solibri: image

Use cases:

WawanSolihin commented 5 years ago

There is a way to do this, but it will involve a few steps using the User-defined IFC propertyset and parameter formula. The steps are as follow:

  1. Define IFC property set using text file that will be loaded in the export process image
  2. Define the text file. Below is the example: PropertySet: MyPset_Space I IfcSpace DischargeLocation Label ProjectDevelopmentType Label SGPUBPset_Building.ProjectDevelopmentType Combined Label Note that "Combined" is defined as a property in the above property set as Label property (text). The example above assigs the propertyset to IfcSpace. You may change it to any object (or set of objects separated by coma)
  3. Define Combine as a parameter
    image
  4. Use a "formula" for the value for "Combined" property image Detailed description to use the formula can be found here: https://sourceforge.net/p/ifcexporter/wiki/Notes%20on%20parameter%20expression/ You may also define the value of that formula in a global parameter (in the Value column) and bind the global parameter to Combined parameter.
eibre commented 5 years ago

Thank you @WawanSolihin, this helps a lot!

We still manually need to check that all newly created instances are given the correct formula before export though. Would it be possible to have such formula in the property-set text file? Is it critical that one parameter exists in Revit for each property in IFC? Maybe the txt-file could look something like this:

# Format:
#    PropertySet:   <Pset Name> I[nstance]/T[ype]   <element list separated by ','>
#   <Property Name 1>   <Data type> <[opt] Revit parameter name, if different from IFC> <[opt] {formula}>
PropertySet:    Rebar Schedule  I   IfcReinforcingBar
    Pos. nr.    Text    {Partition + Rebar Number}
WawanSolihin commented 5 years ago

Thank you Einar Raknes for your suggestion. Yes it is one thing that we are considering to add into this feature. But it may take time before it becomes reality. Stay tuned..

tsolsen commented 5 years ago

I'm with @eibre here. The feature is super useful, but first them we can truly automate the setup, both for instance and type. Looking forward to have that possibility some time :)

GSteal commented 4 years ago

@WawanSolihin do you know the status on this subject?

WawanSolihin commented 4 years ago

@GSteal , I am sorry there is no progress yet as we are focusing on many things at the moment especially the IFC4 RV Certification and updates to the open source releases. I have looked at the possibility as @eibre suggested and I think it is feasible, but it involves deeper change as the current implementation relies on some other things that cannot be easily replaced. I will update the forum if we have an update on this.

thumDer commented 7 months ago

Are there any updates on this? It would be really useful.