Good morning,
I feel like what I am trying to do is very simple but I cannot find anywhere describing how to set a property using a python script in dynamo. Or I just don’t know what I am looking. I can return the value of the property I want but I don’t know what to type in to change the value. Below is the python code that lets me return the value. Any help would be appreciated.
import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import FabricationPart
from Autodesk.Revit.DB import FabricationAncillaryUsage
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
Inpt = UnwrapElement(IN[0])
Cnt = UnwrapElement(IN[1])
HngRdKt = ()
Out1 = []
Doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
TransactionManager.Instance.EnsureInTransaction(Doc)
if Cnt > 1:
for e in Inpt:
HngRdKt = e.HangerRodKit
Out1.append(HngRdKt)
else:
HngRdKt = Inpt.HangerRodKit
TransactionManager.Instance.TransactionTaskDone()
OUT = Out1
The below snapshot shows the property I would like to change. The Revit API docs says that it has a get and set method but I don’t know how to set it.