The default IFC Export process creates a single IFC file containing all elements in the model, as defined by the IFC Export setup options. By default, it uses the Revit ‘Default 3D view’.
When a smaller subset of the model is required, Automation can create one or more IFC files based on specific views present in the Revit model. There are three ways of exporting view-based IFC files:
Automation will retrieve a specific View Set saved in your Revit model and export an IFC file for each of the views it contains. A View Set is a collection of Views or Sheets in the Revit model that can be saved for later use.
Checking the ‘Export by View Names (Optional)’ checkbox will change the View Set field into a list where view names can be added.
Pick the Add... button, then type in the name(s) of the view(s) to be exported. You can Add... more view names as desired, one into each line. The Additional options provide a setting (checkbox) to ignore errors when the exact file name is not found — e.g. when running IFC export task on multiple files & not all models contain all of the listed views.
This method is used in a different script — IBL-Export_IFC_Dynamic
We can leverage Ideate BIMLink to create dynamic lists of sheets or views based on built-in or custom Revit parameters or Ideate BIMLink properties. Once you have created the BIMLink definition inside the Revit model or exported it as a .link definition, you can point Automation tasks to it, to dynamically generate a list of views in Revit model(s) based on the criteria defined in this BIMLink.
Ideate Automation will generate an IFC file from each view on the dynamic list.
The built-in IBL-Export_IFC_Dynamic script comes with a BIMLink definition called Views-IFC that looks for views in the model containing the phrase IFC. If desired, import this link into Revit and make changes to it as appropriate, then export the link definition into a shared location for future use.