Take advantage of live VIM file loading with well-tessellated meshes from Revit and IFC. This approach avoids one-off real-time experiences, which require artists and developers to build unique apps per BIM project.
VIM API for Unity
This package looks at the VIM API for quickly loading optimized Unity scenes from VIM files.
There are two packages available:
com.vim.api.0.5.0.zip which uses VIM 1.0.xx series for Unity 2019.4.14f1
com.vim.api.0.5.6.zip or newer which uses VIM 1.2.xx series for Unity 2022.2.0b5
Importing VIM API using Unity's Package Manager
Download and unzip this package
Create a new 3D unity project, or use your own.
In the top navigation bar, go open "Window > Package Manager."
In the top-left corner of the Package Manager, click on the "+" menu item to load a new package and select "Add package from disk."
Navigate to find where you unzipped this package. Then select "package.json" and click "Open."
Running Sample Scene
In the Package Manager's top left menu, in the dropdown on the right side of the "+" sign, select "In Project" instead of "Unity Registry" or other values.
At the top of the list, under the "Custom" section, Select the "Vim.Unity.Api"
In the bottom right side panel, under "Samples," click "Import" next to "LoadVim."
In the Project Browser, you can now run and open the sample scene "...\Assets\Samples\VIM Unity API\0.3.0\LoadVim\Scenes\Sample_LoadVim.unity."
Exploring Sample Code and Project
Select the "Loader" in the Hierarchy Panel
In the Inspector, under the "Sample Loader (Script)," you can select one of the VIM model sample files to load different VIMs.
To load your own VIM file, enter the path to your file in the input for "Custom Path." You can create your own VIM files using our Revit exporter or IFC to VIM conversion process.
Once you have selected the VIM model, press "Play."
Unity will automatically find and import any vim file you place into the project folder.
The newly created asset will have a vim icon.
You can reference the asset in the SampleLoader to load it.