Thank you! was good to finally see it finally work. Just needed list.create for Select Model Element. I’ve tried all sorts of things but for the life of me cant get this to accept anymore then one thing. Am I missing something simple?
Below is just one of all sorts I tried with chopping lists and creating lists.
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import Autodesk
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
a = UnwrapElement(IN[0])
v = UnwrapElement(IN[1])
b = UnwrapElement(IN[2])
TransactionManager.Instance.EnsureInTransaction(doc)
for i in a:
if b:
i.HideBubbleInView(DatumEnds.End0,v)
i.HideBubbleInView(DatumEnds.End1,v)
else:
i.HideBubbleInView(DatumEnds.End0,v)
i.HideBubbleInView(DatumEnds.End1,v)
TransactionManager.Instance.TransactionTaskDone()
#Assign your output to the OUT variable.
OUT = 0