I have a listview that is populated by a list of "Drawing Sheet Numbers" that can be selected for printing.
I have tried to add sub items for Sheet Size and Orientation
Is there any way I can add subitems to the listview that are editable by the user : ie change A4 to A3, Landscape to Portrait, possibly via a combobox, if possible or labeledit = true on subitems.
As I have it just now, when I add sub items as a test - they are all assigned the same value
Any help much appreciated.
I have tried to add sub items for Sheet Size and Orientation
Is there any way I can add subitems to the listview that are editable by the user : ie change A4 to A3, Landscape to Portrait, possibly via a combobox, if possible or labeledit = true on subitems.
As I have it just now, when I add sub items as a test - they are all assigned the same value
Code:
Public Sub ListViewSheetSet()
Dim vt As VisibleType
If showSheetsCheckBox.Checked AndAlso showViewsCheckBox.Checked Then
vt = VisibleType.VT_BothViewAndSheet
ElseIf showSheetsCheckBox.Checked AndAlso Not showViewsCheckBox.Checked Then
vt = VisibleType.VT_SheetOnly
ElseIf Not showSheetsCheckBox.Checked AndAlso showViewsCheckBox.Checked Then
vt = VisibleType.VT_ViewOnly
Else
vt = VisibleType.VT_None
End If
Dim views As List(Of Autodesk.Revit.DB.View) = m_viewSheets.AvailableViewSheetSet(vt)
viewSheetSetListView.Items.Clear()
For Each view As Autodesk.Revit.DB.View In views
Dim item As New ListViewItem(view.ViewType.ToString() + ": " + view.ViewName)
item.Checked = m_viewSheets.IsSelected(item.Text)
viewSheetSetListView.Items.Add(item)
item.SubItems.Add("A4")
item.SubItems.Add("L")
Next
End Sub