Hi everyone,
is there any way to override the graphic settings for pre selected elements all at the same time instead of looping through every single elements and override one by one?
doc.Activeview.SetElementOverrides(ElementId (can we do a list of elements here instead of just one element id?,osg)
Hi everyone,
is there any way to override the graphic settings for pre selected elements all at the same time instead of looping through every single elements and override one by one?
doc.Activeview.SetElementOverrides(ElementId (can we do a list of elements here instead of just one element id?,osg)
Hi @Anonymous. If all elements have the same category, then you can try SetCategoryOverrides Method. In other way only using foreach...
ICollection<ElementId> ids = uiApp.ActiveUIDocument.Selection.GetElementIds();
foreach (ElementId id in ids)
{
doc.ActiveView.SetElementOverrides(id, ogs);
}
Best regards, Pavel Plotitsyn.
Hi @Anonymous. If all elements have the same category, then you can try SetCategoryOverrides Method. In other way only using foreach...
ICollection<ElementId> ids = uiApp.ActiveUIDocument.Selection.GetElementIds();
foreach (ElementId id in ids)
{
doc.ActiveView.SetElementOverrides(id, ogs);
}
Best regards, Pavel Plotitsyn.
Thanks for the reply.
If we choose each element one by one it is really slow in big models.
Any idea for speeding up?
Thanks for the reply.
If we choose each element one by one it is really slow in big models.
Any idea for speeding up?
View.SetCategoryOverrides()
View.SetFilterOverrides()
View.SetCategoryOverrides()
View.SetFilterOverrides()
Can't find what you're looking for? Ask the community or share your knowledge.