How to create project phase programly?

How to create project phase programly?

Anonymous
Not applicable
2,535 Views
10 Replies
Message 1 of 11

How to create project phase programly?

Anonymous
Not applicable

Is there any API function that can create a new project phase?

or

is there any function that can modify phase's name?

I use revit 2018 sdk, 2020?2021?which version can solve this problem?

 

I had try to set phase.name, but failed, "the  propriet can not be modified",

and try to set  phase parameter‘s’ value(phase_name),but it is "read_olny", so failed too.

 

respect your reply!

thank you so much~ thank you!

 

2,536 Views
10 Replies
Replies (10)
Message 2 of 11

jeremytammik
Autodesk
Autodesk

Setting the Name property or the associated underlying parameter are the only two options I can think of to set the phase name.

 

If they do not work, I assume it is not possible, unfortunately.

  

Can you set the phase name manually in the end user interface? If that is not possible,  the API will certainly not enable it either. 

  

To request this functionality, please add a wish list item to the Revit Idea Station and tag it as API, or, better still, vote for an existing request.

 

In this case, a good candidate is 'Create Phases in API':

 

 

By the way, here are two other old threads on this topic, found by searching for 'create phase':

 

 

Unfortunately, they do not help much either.

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 11

Anonymous
Not applicable

Is phase method is available currently in Revit 2020 API.

Message 4 of 11

wenjuzhang
Explorer
Explorer

Hi Guys, just would like to know is there any updates for revit 2023 api?

 

Message 5 of 11

floretti
Advocate
Advocate

I just checked the API for 2024 and we still can't create phases programmatically. One of the articles in the links shared by Jeremy is from 2011.

Message 6 of 11

vilinAAB5J
Explorer
Explorer

Is there any update on this? It would be super helpful if this can get integrated in the next version. 

0 Likes
Message 7 of 11

jeremy_tammik
Alumni
Alumni

I asked the development team for you.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 8 of 11

MERLET_J
Participant
Participant

Hy Jeremy,

 

have you a replies by the dev team about create Phase in revit document programly?

 

 

0 Likes
Message 9 of 11

jeremy_tammik
Alumni
Alumni

Nope, no reply so far. Maybe they have already answered it to often in the past. I re-prompted them for a current update. Have you voted for the wish list item in the Revit Idea Station?

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 10 of 11

jeremy_tammik
Alumni
Alumni

They replied: That is a very valid request and we do have a long standing associated wish REVIT-91344. Please make a note of this number for future reference. We will bring it up, reconsider priority, formally create and track this as an epic.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 11 of 11

pascal.robben
Advocate
Advocate

@jeremy_tammik :

Any news on this topic?

Would be a big timesaver on a project I'm working on.

The project has a lot of necessary phases. We now need to change all phases from 2-digits to 4-digits.

Currently, we can only make these changes manually in each model, which involves a lot of clicking and typing. This increases the risk of making errors.

0 Likes