I have extracted element IDs from Critical Path report and made a list.
Now would like to set a certain custom parameter to 1 for the listed elements (there are various types of families in
the list).
Is there a way to do this ?
I have extracted element IDs from Critical Path report and made a list.
Now would like to set a certain custom parameter to 1 for the listed elements (there are various types of families in
the list).
Is there a way to do this ?
hi @GHK151112112
for that your custom parameter needs to be multicategory.
Then here’s how you could do it :
in this case the ids are integers
import clr
clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *
doc = DocumentManager.Instance.CurrentDBDocument
ids = [ElementId(i) for i in IN[0]]
elements = [doc.GetElement(id) for id in ids]
OUT = elements