Revit API for retrieving revisions associated with Revision clouds on sheet

Revit API for retrieving revisions associated with Revision clouds on sheet

Anonymous
Not applicable
3,755 Views
6 Replies
Message 1 of 7

Revit API for retrieving revisions associated with Revision clouds on sheet

Anonymous
Not applicable

Hello everyone,

 

Does anyone know how can we get revisions associated with revision clouds using Revit API? During my search I found RevisionCloud.RevisionId property. But this command line didn't work for me.

 

 

Thanks.

Shilpi 

0 Likes
Accepted solutions (2)
3,756 Views
6 Replies
Replies (6)
Message 2 of 7

jeremytammik
Autodesk
Autodesk

Dear Shilpi,

 

Yes. 

 

Use the Revision API.

 

Here is a sample by Dan Tartaglia on The Building Coder:

 

http://thebuildingcoder.typepad.com/blog/2014/06/the-revision-api-and-a-form-on-the-fly.html

 

Cheers,

 

Jeremy



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

0 Likes
Message 3 of 7

Anonymous
Not applicable
Dear Jeremy,

Thanks for your reply. I had a look at the link provided by you but it
didn’t resolve my problem. Using the API I am able to get all the revisions
on the sheet but I am not able to figure out as how can I identify the
revisions corresponding to a revisionCloud. Can you please help on this.

Thanks again

-Shilpi
0 Likes
Message 4 of 7

jeremytammik
Autodesk
Autodesk
Accepted solution

RTFM:

 

RevisionCloud RevisionId Property:

 

http://www.revitapidocs.com/2018.1/611e9a5a-f968-152d-707b-de7395f65819.htm



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

Message 5 of 7

Revitalizer
Advisor
Advisor
Accepted solution

Hi,

 

I would think:

 

Revision revision = doc.GetElement(revisionCloud.RevisionId) as Revision;

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





Message 6 of 7

Anonymous
Not applicable

Thanks Jeremy for your help. Much appreciated.

 

Regards,

Shilpi

0 Likes
Message 7 of 7

Anonymous
Not applicable

Thanks for your solution. It helped. 

 

Regards,

Shilpi

0 Likes