I want set color to elements. In Revit 2019 and early works well, but after 2019 its can override only Line graph settings. I need colored like a solid.
SetProjectionFillColor
in 2019 code:
OverrideGraphicSettings ogs = new OverrideGraphicSettings();
ogs.SetProjectionFillColor(new Color(255, 0, 0));
ogs.SetProjectionFillPatternId(solidFill.Id);
using (Transaction transaction = new Transaction(doc))
{
transaction.Start("Colorize");
foreach (var id in allNeddedElement)
{
doc.ActiveView.SetElementOverrides(id, ogs);
}
transaction.Commit();
}
SetProjectionLineColor in later than 2019