Wednesday, 8 October 2014

Making of Purge Variables for Solid Edge - Part 5

...continued from Part 4

The Select all button facilitates selecting all unused variables listed so they can be deleted at once.

For i As Integer = 0 To lstVars.Items.Count - 1
  lstVars.SetSelected(i, True)
Next

The Clear All button reverses this by simply setting SetSelected to False:

For i As Integer = 0 To lstVars.Items.Count - 1
  lstVars.SetSelected(i, False)
Next

The Invert Sel button facilitates picking all but one or two variables by simply swapping the selected states:

For i As Integer = 0 To lstVars.Items.Count - 1
  If lstVars.GetSelected(i) = True Then
    lstVars.SetSelected(i, False)
  ElseIf lstVars.GetSelected(i) = False Then
    lstVars.SetSelected(i, True)
  End If
Next

03  Download just the program or executable file

03  Download the VB.Net (VS 2010, .Net 4.0) solution files

Index of all Solid Edge Tutorials, Tips, Videos...