Hi,
You may have stabilized the name, but when i saw your JPG file, i didnt find any column Name with "BAG_VOLUME"
iPart.ChangeRow("DPPW:1", 8)
If you have doubt still in handling kindly check my example file at: http://grabcad.com/library/ilogic-ipart-and-imate-1
The below code will allow you to pick your component and modify based on selection
Dim comp = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kAssemblyOccurrenceFilter,"Select Component to change:")
'MsgBox(comp.Name)
DefaultRowNumber = iPart.RowNumber(comp.Name)
'rowName = iPart.RowName(comp.Name)
'rowstringvalue=iPart.CurrentRowStringValue("Member")
'MsgBox("Default Row No= " & GetDefaultRowNumber & " RowName==> " & rowName & " RowStringValue==> " & rowstringvalue)
i = iPart.FindRow(comp.Name,"Member","=","CUSTOM") ' To set last row no to Dim i
'MsgBox("Row No= " & i)
j=1
Component.Visible(comp.Name)=False
Dim sizelist As New ArrayList
For j = 1 To i
iPart.ChangeRow(comp.Name,j)
rowstringvalue=iPart.CurrentRowStringValue("Part Number")
'MsgBox("Row String Value= " & rowstringvalue)
sizelist.Add(rowstringvalue)
'MsgBox("j= " & j)
Next j
'MsgBox("j= " & j)
iPart.ChangeRow(comp.Name,j-1)
'sizelist.Add(rowstringvalue)
iPart.ChangeRow(comp.Name,DefaultRowNumber)
Component.Visible(comp.Name)=True
sizelist1= InputListBox("Select sizelist ", sizelist, sizelist, Title := "Select Sizelist", ListName := "Select Sizelist")
j = iPart.FindRow(comp.Name,"Part Number","=",sizelist1)
'ThisApplication.CommandManager.StartCommand(2344) ' kZoomAllCommand = 2344
'ThisApplication.CommandManager.StartCommand(2353) ' kPanCommand = 2353
accept = InputRadioBox("Accept or Reject to change size", "Accept", "Reject", accept, Title := "Accept or Reject to change size")
'Run rule based On selection
While accept <> True
sizelist1= InputListBox("Select sizelist ", sizelist, sizelist, Title := "Select Sizelist", ListName := "Select Sizelist")
j = iPart.FindRow(comp.Name,"Part Number","=",sizelist1)
ThisApplication.CommandManager.StartCommand(2344) ' kZoomAllCommand = 2344
accept = InputRadioBox("Accept or Reject to change size", "Accept", "Reject", True, Title := "Accept or Reject to change size")
MsgBox(accept)
'yesorno=MessageBox.Show("Are you sure you want to use this size?","iLogic",MessageBoxButtons.YesNo)
If accept <> True 'Or yesorno= vbYes
iPart.ChangeRow(comp.Name,DefaultRowNumber)
End If
End While
'Dim Currentpartno= iPart.CurrentRowStringValue("Part Number")
'MsgBox("Current Part No= " & Currentpartno)
'Tubelength = InputBox("Enter Tubelength", "Tubelength", "10")
'MsgBox("j= " & j)
'iPart.ChangeRow(comp.Name,iPart.RowName(comp.Name),Tubelength)
ThisApplication.CommandManager.StartCommand(2344)
'ThisApplication.ActiveView.Fit