Message 1 of 8

Not applicable
05-25-2015
03:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone:
I am trying change the color a element but the following code not work. I am using Revit 2015. The element is "Parts".
For to change to color I am using a foreach:
FilteredElementCollector collector = new FilteredElementCollector(m_revit.ActiveUIDocument.Document).OfClass(typeof(FamilyInstance)); foreach (FamilyInstance fi in collector) { Color color = m_revit.ActiveUIDocument.Application.Application.Create.NewColor(); color.Blue = ( byte ) 150; color.Red = ( byte ) 200; color.Green = ( byte ) 200; doc.ActiveView.set_ProjColorOverrideByElement(fi.Id, color); }
set_ProjColoOverrideByElement is deprecate in Revit 2015?
Thank's for you help.
Regards,
David
Solved! Go to Solution.