Export assembly as IFC

Export assembly as IFC

rbertoletti
Enthusiast Enthusiast
616 Views
2 Replies
Message 1 of 3

Export assembly as IFC

rbertoletti
Enthusiast
Enthusiast

Hi guys,

I'd like to have a rule in my assembly which can export the model in IFC format. I know that it should be firstly simplified using the "BIM Content" because in other ways it's not possible.

 

Thanks

0 Likes
Accepted solutions (1)
617 Views
2 Replies
Replies (2)
Message 2 of 3

JelteDeJong
Mentor
Mentor

I don't have the "Revit interoperability component" installed so I can't check it but it might work.

Dim fileName = "d:\temp\component.ifc"

Dim doc As AssemblyDocument = ThisDoc.Document

Try
    doc.ComponentDefinition.BIMComponent.ExportBuildingComponent(fileName)
Catch ex As Exception
    MsgBox("Did you install the Revit interoperability component?")
End Try

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 3

rbertoletti
Enthusiast
Enthusiast
Accepted solution
Thanks, It create correctly the IFC file but i don't know why it export an empty file.
The assembly to export is including sub-assemblies, maybe it could be the problem?
0 Likes