hi all,
all elements are reset element override in active view.(see image)
i have required a all element are reset element override in all views, not active view.
please suggest me how do this.
hi all,
all elements are reset element override in active view.(see image)
i have required a all element are reset element override in all views, not active view.
please suggest me how do this.
can you clarify more. Show the full graph or share the .dyn
i tried but not work.
can you share you model if you can…
see attached file
TEST-01.rvt (1.6 MB)
use the below link for Orchid package update…
Hello
the custom “View.ResetElementOverrides” node work only with one view in input, here an alternative with Python script for multiple views
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
toDoList = lambda x : x if hasattr(x, '__iter__') else [x]
items = toDoList(UnwrapElement(IN[0]))
itemsId = [x.Id for x in items]
lstViews = toDoList(UnwrapElement(IN[1]))
viewsProcessing = []
override = OverrideGraphicSettings()
TransactionManager.Instance.EnsureInTransaction(doc)
for view in lstViews:
if not view.IsTemplate:
if view.AreGraphicsOverridesAllowed():
viewsProcessing.append(view)
elemsViewId = FilteredElementCollector(doc, view.Id).ToElementIds()
matchSetId = set(itemsId) & set(elemsViewId)
for itemId in matchSetId:
view.SetElementOverrides(itemId, override)
TransactionManager.Instance.TransactionTaskDone()
OUT = (items,viewsProcessing)
Thanks c.poupin
Greetings,
Is it possible to instead of resetting all views, to reset overrides on multiple views selected in the project browser?
thanks.
Thank you, most appreciated! works like charm!