Hi everyone,
I am trying to color code certain elements with python in the active view, but unfortunately was not able as Revit 2019 properties are a little bit different comparing to previous versions. Ido not know what to put for XXXXXXXXXXXXXXXX in code below.
Any help is greatly appreciated.
override = OverrideGraphicSettings()
override.SetSurfaceForegroundPatternId(XXXXXXXXXXXXXXXX)
override.SetSurfaceForegroundPatternColor(Color(127,255,0))
override.SetSurfaceBackgroundPatternColor(Color(127,255,0))
#override.SetCutFillPatternId(Pat[14].Id)
activeviewid=doc.ActiveView.Id
idoutput=
for i in cols:
colid=i.Id
idoutput.append(colid)
doc.ActiveView.SetElementOverrides(colid,override)
TransactionManager.Instance.TransactionTaskDone()