I would like to be able to uncheck or check the check box of level heads that display in a view (image attached). I searched an couldn’t seem to pull anything up on the web or this Forum.
Does anyone know if this is possible with “out of the box” Dynamo nodes, or would it require a custom node?
I don’t have that “Active View” node you are showing, so I just used “Views” and I selected the view I’m looking at, but I get the following error from the Python Script node…
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 20, in
AttributeError: ‘Level’ object has no attribute ‘HideBubbleInView’
@jwarner4 check your Revit version. DatumPlane.HideBubble() – Hides bubble in the specified view will only work on version Revit 2016 onwards. Are you sure your using Revit 2016?
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