How to : View class set_SurfacePatternOverrideByElement() in API 2012?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
I would like to set the surface pattern color of element in 3D view using 2012 API. This can be done via UI by Open 3D View->Right click on a Element--> Override Graphic in View --> By Element --> SurfacePattern --> choose color, Pattern - solid
However, i can't find any method/function to set the surface pattern and color override by element.
In the View Class, it has method like
public void set_CutColorOverrideByElement(ICollection<ElementId> ids, Color color);
public void set_CutLinePatternOverrideByElement(ICollection<ElementId> ids, LinePatternElement linePattern);
public void set_CutLineWeightOverrideByElement(ICollection<ElementId> ids, int weight);
public void set_ProjColorOverrideByElement(ICollection<ElementId> ids, Color color);
public void set_ProjLinePatternOverrideByElement(ICollection<ElementId> ids, LinePatternElement linePattern);
public void set_ProjLineWeightOverrideByElement(ICollection<ElementId> ids, int weight);
but, all above method does not set the surface pattern. Does anyone know how to change the surface pattern and color override by element using 2012 API? Any help is appreicated.