combo box

combo box

Anonymous
Not applicable
504 Views
2 Replies
Message 1 of 3

combo box

Anonymous
Not applicable

Hi All,

 

How to load existing view/sheet set in in combo box  any idea.

Thanks in advance.

 

Regards

Mass Richard

0 Likes
505 Views
2 Replies
Replies (2)
Message 2 of 3

Moustafa_K
Collaborator
Collaborator

Try this one... this will get All View Sheet Set

 

 IList<ViewSheetSet> vsheetsets= new FilteredElementCollector(doc).OfClass(typeof(ViewSheetSet)).Cast<ViewSheetSet>().ToList();

 foreach (ViewSheetSet vs in vsheetsets)
            {
                
                    if (!comboBox1.Items.Contains(vs.Name)) comboBox1.Items.Add(vs.Name);
            }
Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
Message 3 of 3

Anonymous
Not applicable

Hi all,

 

As per mostafa sugetion i have loaded all the viewsheetset in combo box but i am facing one more problem, After selecting viewset it is not highlighting the sheets in viewsheetset(screen shot is attached).

 

Regards

Mass R

0 Likes