Autodesk / revit-ifc

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

using revit api to create rebarcontainer does not export to ifc #335

Open zalan159 opened 2 years ago

zalan159 commented 2 years ago

tried in 20 21 22 revit. none of them can export the revit api built rebarcontainer. it's displayed in revit family name called structural rebar:structural rebar container. how can i export it into ifc?

AngelVelezSosa commented 2 years ago

Can you include an RVT files with the API built RebarContainer?

zalan159 commented 2 years ago

Can you include an RVT files with the API built RebarContainer?

Hi,AngelVelezSosa,thank you for replying.here it is.

download

it contains 2 family of rebar, both revit api built

image image and the ifc export comes out like this,rebars in container did not exported, image

zalan159 commented 2 years ago

it maybe the phasing problem

zalan159 commented 2 years ago

its the property problem while using revit api to build rebarcontainer it cannot automaticly figure properties below image while using revit ui it can be figured image

AngelVelezSosa commented 2 years ago

So is that a Rebar API problem?

zalan159 commented 2 years ago

So is that a Rebar API problem?

it seems the only reason that make sense.

I've seen a very similar issue in the autodesk forum , may lead to the same conclusion , rebarcontainer api has some problem causes rebarcontaineritem.totallength=0. at the same time , class IFCInstanceExporter.CreateReinforcingBar need a barLength property.

example