Manage Revisions

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
6 Likes