Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create Phases in API

Create Phases in API

Hi.

 

Please can you expose the API methods for creating phases and phase filters.

 

Regards, Tom.

13 Comments
wenjuzhang
Explorer

Any updates in revit 2023?

floretti
Advocate

I would expand the request to be able to get/set description, combine, etc. Just like what's available in the UI.

 

Something else I wish I could do is create shared parameters for phases. I work in a retail business and our stores go through many changes during their lifetime and every project for each store has its own project number which I would love to be able to assign to a Revit phase without having to use the phase name (the project numbers are not user friendly and hard to decipher).

richard.bourgoin4Y775
Participant

Category: Revit - API / Automation Description:

 

Currently, the Revit API does not provide a public method to create phases programmatically. This limitation significantly impacts workflows that require managing large numbers of phases, particularly in construction phasing scenarios similar to project scheduling software (e.g., PCMO, 4D BIM workflows).

 

CURRENT LIMITATIONS:

- PhaseArray.Create() method does not exist or is not accessible in the public API

- Phase class has no public constructors

- The only way to create phases is manually through the Revit UI (Manage > Phases)

- For projects requiring 200+ phases, manual creation is extremely time-consuming and error-prone

 

REQUESTED FEATURE: Add a public API method to create phases programmatically, such as:

- PhaseArray.Create() method (similar to other collection types in Revit API)

- Phase.Create(Document doc, string name) static method

- Or any equivalent method accessible from:

* Python (pyRevit, Dynamo Python nodes)

* C# (add-ins, macros)

* Dynamo DesignScript

 

USE CASES:

1. Construction Phasing: Projects with 200+ construction phases tied to scheduling

2. 4D BIM Integration: Synchronizing Revit phases with external scheduling tools

3. Template Creation: Automated generation of project templates with predefined phases

4. Batch Processing: Updating multiple projects with standardized phase structures

 

BENEFITS:

- Significant time savings (hours → seconds for large phase sets)

- Improved accuracy and consistency

- Better integration with scheduling and planning software

- Enhanced automation capabilities for BIM workflows

 

WORKAROUND (current):

Users must either:

- Manually create hundreds of phases (extremely tedious)

- Use UI automation tools (unreliable and fragile)

- Modify RVT files directly (unsupported and risky)

 

This feature would align with Autodesk's commitment to API completeness and would significantly enhance Revit's capabilities for construction management and 4D BIM workflows.

 

REFERENCES:

- Similar functionality exists for: Levels, Views, ViewTemplates, Parameters

 

Thank you for considering this enhancement.

dfoth
Advocate

WHY is this not fixed yet?! Please fix this API gap. 

rdeardorff
Enthusiast

100% please do this.  It feels very much like an oversight that it hasn't happened already.

gernot.frisch
Observer

bump

tamas.deri
Advocate

c'mon!

floretti
Advocate

3 years after my first comment and the requirement hasn't changed, I still need to create/modify phases via the API please.

dfoth
Advocate

@floretti I asked the Autodesk API people about this last year at AU and they told me to join the Autodesk Developer Network and report the "API gap" there. It costs money to join the ADN so we haven't joined yet. I'm going to bother them about it again at AU this year. Anybody got any API gaps you want me to ask about? Maybe if I hand them an actual printed list they will get fixed. 

Susana_Duarte_LMSI
Collaborator

Oh, I think I remeber one that is a bit silly. You may correct me if I'm wrong (maybe it's just dynamo limitation and not full API limitation) but I think one cannot create a 3D view from scratch - one must always duplicate from an existing one, and then, one cannot change the type of the duplicated view if we need to... Pretty silly limitations, right? And I can see a lot of workflows being improved to not need the previous and after human interaction to overcome this limitation.

Thank you for your initiative @dfoth! Best of luck!

floretti
Advocate

@Susana_Duarte_LMSI    That must be a Dynamo limitation as the API has the below to create 3D views from scratch without needing another one.

View3D.CreateIsometric() 

dfoth
Advocate

Its not a dynamo limitation either. You can create a fresh 3D view in dynamo. I'm not sure if you can change the 3D view's type to a different 3D view but you can definitely set the view template of the 3D view. I've done it.

dfoth
Advocate

Find me at AU this year. I'll be in shirts with this on the back.

dfoth_0-1788472224388.png

Gotta try everything to get these things fixed.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea