How to create project revisions from code in 2012?

How to create project revisions from code in 2012?

Anonymous
Not applicable
864 Views
2 Replies
Message 1 of 3

How to create project revisions from code in 2012?

Anonymous
Not applicable

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...

0 Likes
Accepted solutions (1)
865 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Good question! 

 

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

0 Likes
Message 3 of 3

augusto.goncalves
Alumni
Alumni
Accepted solution

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

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network