Change iPart member not in assembly

Change iPart member not in assembly

tspangenberg
Explorer Explorer
248 Views
1 Reply
Message 1 of 2

Change iPart member not in assembly

tspangenberg
Explorer
Explorer

How do you change a iPart row within a iPart.  My part is not in an assembly and all the change row seem to want a component name to change the row.

tspangenberg_0-1660319148323.png

I have the dialog for getting the size, but I can't seem to get the row to change.

'Size Variables
Unit = Convert.ToInt32(Size)
PartName = iPart.RowName("")

oRowName = "CACF A4 Mock Part-" & Size
'i=iPart.ChangeRow(oRowName)
'ChangeRow(oRowName)
'iPart.ChangeRow("iComponentName:1", "RowMemberName")

MessageBox.Show(oRowName, "Title")
0 Likes
Accepted solutions (1)
249 Views
1 Reply
Reply (1)
Message 2 of 2

A.Acheson
Mentor
Mentor
Accepted solution

When in the ipart factory you can leave out the occurrence name as none exist.

 

'Find row containing Part Number Value
Dim i As Integer = iPart.FindRow("", "Part Number", "=", "PTR0045")
iPart.ChangeRow("", i)

'Change row by entering index value
iPart.ChangeRow("", 1)

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes