IFC Batch Export Through Phases

Hi everyone,

I am trying to export IFCs in Revit via Python scripts in Dynamo.
What should I add below for me to export a specific phase.

A

Thank you in advance.

Hi @blsalvio,

The option for the phase is not visible in the Revit API.
https://apidocs.co/apps/revit/2019/666a023b-dad9-4246-079c-1c4e8070bec9.htm
But you can export a given view with its properties. (phase, phase filter…)

You can use the Export IFC node in Genius Loci package for that purpose.

You’re right.
There is indeed a property when looking in the IFC source code that is not present in the Revit API documentation.

in python :
options.AddOption(“ActivePhase”, str(phase.Id));

-if you want to export ifc from your current opened document you need to use the builtin (select phase) node as an input.
-if you need to export ifc from another Revit document then you will need to collect the phases using (Document.Phases) from Clockworks package