Hello,
i try to learn some stuff, but still there are errors
import sys
import clr
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
Category_ = UnwrapElement(IN[0])
Walls = FilteredElementCollector(doc).OfCategoryId(Category_.Id).WhereElementIsNotElementType().ToElements()
OUT = Walls
where do i stuck
KR
Andreas
Seems like a bug in new Dynamo or Revit Version. In 2022 you can get Id of category.
@Deniz_Maral ,
yes i do stuff in Revit 2023… thanks
KR
Andreas
Your code works fine for me in 2023. What is the Category you’re providing?
@Nick_Boyts ,
the error remains… or can i just use one filter per “run”?
Same code in two different python nodes? One works, one doesn’t?
Try closing and reopening the graph. The input is blocked in your previous image. Is everything the same between these two instances?
1 Like
@Nick_Boyts ,
that was it open close! in Revit 2022…
…2023… i have to find a other solution
I thought this was all in 2023. What’s the issue there? As I mentioned, your code works fine for me in 2023 so it’s likely not an issue there. There may be something else causing a problem for that project.