Hi @Anonymous ,
To get view form view set
1)get all the view sheets from the view set.
2)from each viewsheet get the views.
try using the below code
ViewSet myViewSet;
IList<View> myViews= new List<View>();
foreach(ViewSheet sheet in myViewSet)
{
ISet<ElementId> viewIds = sheet.GetAllPlacedViews() as ISet<ElementId>;
foreach(ElementId viewID in viewIds)
{
View v = doc.GetElement(viewID) as View;
myViews.Add(v);
}
}
Here IList<View> myViews contains all the views placed in the view sheets.
Is this what you want?
If not can you please explain your issue a bit more?
I hope this helps.
Naveen Kumar T
Developer Technical Services
Autodesk Developer Network