IFC import
Goodday,
For our project, a infra building we created several familys with a lot of "shared parameters in Revit. now we would like to see them back in Unity 3D but i don`t see any option to import the IFC file.
can someone help me with this isseu
thank`s a lot, kind regards
Wouter Balk
Answer by mthorade · Dec 06, 2016 at 12:55 PM
IFC import in Unity would be awesome, but currently
one has to first convert the IFC file into one of the formats that Unity understands:
https://docs.unity3d.com/Manual/HOWTO-importObject.html
Have a look at DAE, OBJ, and FBX, they might be suited for your job.
Revit can export to Filmbox FBX:
https://en.wikipedia.org/wiki/FBX
IfcOpenShell comes with a command line tool IfcConvert:
http://ifcopenshell.org/ifcconvert.html
That tool can convert IFC to Collada DAE or Wavefront OBJ.
https://en.wikipedia.org/wiki/COLLADA
https://en.wikipedia.org/wiki/Wavefront_.obj_file
This blog suggests to use Cinema4D to convert IFC into Filmbox FBX:
http://cad-3d.blogspot.de/
In my project, I have some success with letting IfcConvert convert the IFC file to OBJ and X$$anonymous$$L. Then load the OBJ into the scene and parse the meta and hierarchy from the X$$anonymous$$L file to reorganize the element tree to fit.
Takes some scripting and fiddling, but it works
Answer by lohx · Nov 12, 2016 at 04:56 PM
hi all,
we are also looking for way to import IFC files into Unity. We are working in AEC sector as well and want to evaluate the possibility to make a app to use IFC data with VR. If it would be possible to get also Psets into Unity it would open up a hole new variety of possible applications.
Thanks for any hints!
Florian
Answer by Clogboy · Feb 20, 2017 at 10:13 PM
Have you opened an IFC file in notepad before? The format is almost begging for a script writer to turn that raw data into a unity mesh model.
Answer by H-Alex · Nov 07, 2017 at 04:02 PM
It's hard to convert ifc to polygonal straight from the ifc file because it's mostly a procedural generation of primitives (extrudes, loft, surfaces...) and there are lots of operations to manage before having anything to work properly.
I've had the same need for a long time and had hard time finding a solution. I developed this plugin for Bim Vision that exports ifc to an optimized polygonal model (.obj) that can be imported right away in Unity.
Feel free to check it out and try the demo version.
Does it do any sort of data handling? When data doesn't matter I just pass the FBX through 3DS $$anonymous$$ax so everything with the same material is meshed together. When it does matter I generate a CSV in Dynamo and import it in Unity.
Not yet but if this is a requested feature I'll add that to the next release. What is the data that is exported from Dynamo and that you need in Unity ? Btw, how do you initially convert to fbx ? from all the solutions I tried, I've had troubles finding one that managed multiple building / sites, that keep colors / object names / layers etc.... The plugin I developed also manages material / ifc entity / layer merges, thus avoiding the need for an intermediate software.
I'll keep it in $$anonymous$$d for my next project. I just link it into 3DS $$anonymous$$ax to combine geometries with the same material, but still have to recreate the materials in Unity. I usually recreate the shaded Revit material (no textures).
When working with a big building or a site, I make several smaller FBX exports and then link them all in one 3DS $$anonymous$$ax model which I export to FBX again. In this way, you can do a fair bit of material- and model management that's easy to maintain and should perform well. Requires more prep work but it will pay off in the end. I've made a few AR 'holograms' this way for the Daqri smart helmet.
Answer by rresende · Mar 16, 2018 at 07:03 PM
I'm working on a process to get element parameter:
In Revit: - Export FBX - Run Dyanmo script that produces a XML file with Element Id and other info extracted from the elements (currently Category but any element info can be included). - List item
In Unity run a script that -Imports FBX -Reads element id from element name in the Hierarchy - Parses XML file for id and aditional info
Your answer
Follow this Question
Related Questions
Unity input stutter with new Input System and 3rd Person Starter Asset 2 Answers
Is there a way to update InputSystem by Fixed Time without stuttering in 2020.3.33f1 or higher? 0 Answers
How can I have a uniform struct in a Shader? 0 Answers
Differentiate between types of key press 1 Answer
How do you detect if a touch is hitting an object? 0 Answers