Reset element override in all views

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

for example

you can use as below

i tried but not work.

can you share you model if you can…

see attached file
TEST-01.rvt (1.6 MB)

its working fine for me…try with attached file.

Viewreset.dyn (13.0 KB)

i think, i have a old custom node(Orchid).

use the below link for Orchid package update…

https://github.com/erfajo/OrchidForDynamo

i think it should be ‘true’, not false. and not reset elements ovrrides.

if you did Element overrides it will become true…or it will false…

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)
7 Likes

Thanks c.poupin :+1: :+1: :+1:

Greetings,
Is it possible to instead of resetting all views, to reset overrides on multiple views selected in the project browser?

thanks.

Yep - easy. Just adjust how you’re gathering model elements and views to suit your needs.

2 Likes

Thank you, most appreciated! works like charm!