Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to create project revisions from code in 2012?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
dnielsen911
726 Views, 2 Replies

How to create project revisions from code in 2012?

Is there a way to create a new "Revisions" element by using the API?

 

When using the "Snoop DB" from the sample "RevitLookup" visual studio project the "Revisions" within the document look like the following:

 

------------------- Element --------------------------------------------------------
                           Name    Revisions
                             ID    161197
                      Unique ID    d653bb87-74b5-4da5-b742-bf08af64138f-000275ad
                       Category    < Category >
                    Object type    < null >
                          Level    < null >
                       Document    < Document >
                       Location    < null >
                      Materials    < MaterialSet >
                     Parameters    < ParameterSet >
                 Parameters map    < ParameterMap >
                  Design option    < null >
                          Group    < null >
                  Phase created    < null >
               Phase demolished    < null >
           Similar object types    < ElementSet >
                         Pinned    False
                       Geometry    <Geometry.Element>
------------------- Element --------------------------------------------------------
                  Owner View Id    < ElementId >
                  View Specific    False
           Assembly Instance Id    < ElementId >
                     Workset Id    < WorksetId >
                         Pinned    False
                      Materials    < MaterialSet >
                      Unique Id    d653bb87-74b5-4da5-b742-bf08af64138f-000275ad
           Similar Object Types    < null >
                    Object Type    < null >
                          Group    < null >
               Phase Demolished    < null >
                  Phase Created    < null >
                  Design Option    < null >
                          Level    < null >
                       Document    < Document >
                       Location    < null >
                 Parameters Map    < ParameterMap >
                     Parameters    < ParameterSet >
                       Category    < Category >
                           Name    Revisions
                             Id    < ElementId >
       Get Divided Surface Data    < null >
                    Get Type Id    < ElementId >
                Get Valid Types    < List`1 >
    Get External File Reference    This Element does not represent an external file.
           Get Analytical Model    < null >
        Get Analytical Model Id    < ElementId >
 Get Monitored Link Element Ids    < List`1 >
Get Monitored Local Element Ids    < List`1 >

 

The built-in category is: OST_Revisions ... Is there a Document.Create.New??? method that can be used?

 

Listing is no problem, creating is the challenge...

2 REPLIES 2
Message 2 of 3
hisdirt
in reply to: dnielsen911

Good question! 

 

Ive arrived at a similar point (3 years on), is it possible to create revisions with the API?

Tags (2)
Message 3 of 3

Unfortunately no, Revit 2012, 2013 nor 2014 APIs offers this feature...

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community