Resetting Color to Default by Color.by.ARGB

Hi,
How do I reset Color changed by Color.by.ARGB node .
Inside dynamo and inside Revit too

Depending on how the change has been made, you could try the Element.ResetOverridesInView node from the #clockwork package?

1 Like

Hi,
How does that work with Current view ( not specific) . I want to remove the color overrided by this node. Or maybe suggest me any other way which we could easily reset

One way of doing this :wink:

1 Like

Hi, Getting this error

You look to be using Dynamo 2.0 my test was in 1.3.2

Can you expand and pin all node list boxes?

This is in older dynamo. What am I doing wrong?

It appears your problem lies in the #clockwork node.
Can you try an extracted python script?

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
items = UnwrapElement(IN[0])
view = UnwrapElement(IN[1])
booleans = []

override = OverrideGraphicSettings()

TransactionManager.Instance.EnsureInTransaction(doc)
for item in items:
	try:
		view.SetElementOverrides(item.Id, override)
		booleans.append(True)
	except: booleans.append(False)
TransactionManager.Instance.TransactionTaskDone()
OUT = (items,view,booleans)
2 Likes

Hi, This is not working all the time. It doesn’t respond in 3d views. And sometimes in Plan view as well. Please help