Manage Revisions

Hi everyone

I would like to manage the Revisions, more specific i would like to delete all Revision clouds, which I am able to, if all Revisions are set to have Issued not ticked on.
But can’t get my head around how to set it from Dynamo, and can’t find any posts to help me along…

Can anyone guide me in some direction…?

Regards
Kristian

Hi @K.Kvistgaard
This will delete all revision clouds :

I don’t think that it is possible to set the “issued” parameter from dynamo because it’s read only.

What you show there, is kind of what i have. But before all that, i would like to set the Issued to be ticked off. And yep, it is probably Read-only, but where hoping there may be a work-around:slight_smile:

Looks like it’s writable to me:
http://www.revitapidocs.com/2017/d0b69c8a-e962-9054-375b-125beac6001b.htm

Not so fast.
“Issued” is a property that supports setting the param value.

import clr

clr.AddReference('RevitAPI')

from Autodesk.Revit.DB import *



clr.AddReference("RevitNodes")

import Revit

clr.ImportExtensions(Revit.Elements)



clr.AddReference("RevitServices")

import RevitServices

from RevitServices.Persistence import DocumentManager

from RevitServices.Transactions import TransactionManager



doc = DocumentManager.Instance.CurrentDBDocument

items = UnwrapElement(IN[0])

issued = IN[1]



TransactionManager.Instance.EnsureInTransaction(doc)

for item in items:

    item.Issued = issued

TransactionManager.Instance.TransactionTaskDone()



OUT = items
5 Likes

Works perfect!! Thanks, once again, Andreas…!