Batch export from Revit to IFC

It doesn’t seem possible to export IFC from families.
The export option is grayed out in the family interface.
The error with the Export IFC node is “Exception: This Document is not a project document.”