Revit API

Reply
New Member
dnielsen911
Posts: 1
Registered: ‎06-06-2011
Message 1 of 3 (399 Views)
Accepted Solution

How to create project revisions from code in 2012?

399 Views, 2 Replies
06-06-2011 12:31 PM

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

New Member
Posts: 1
Registered: ‎01-19-2014
Message 2 of 3 (87 Views)

Re: How to create project revisions from code in 2012?

01-19-2014 07:35 PM in reply to: dnielsen911

Good question! 

 

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

ADN Support Specialist
Posts: 288
Registered: ‎04-30-2009
Message 3 of 3 (61 Views)

Re: How to create project revisions from code in 2012?

01-29-2014 05:56 AM in reply to: dnielsen911

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

Regards,



Augusto Goncalves
Autodesk Developer Network

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Revit Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Revit helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Revit

Twitter

Facebook

Blogs

Youtube