iLogic iPart ChangeRow - VB.Net equivalent

iLogic iPart ChangeRow - VB.Net equivalent

NachoShaw
Advisor Advisor
362 Views
1 Reply
Message 1 of 2

iLogic iPart ChangeRow - VB.Net equivalent

NachoShaw
Advisor
Advisor

Hey

 

in iLogic, i can easily update a custom iPart by doing the following

 

iPart.ChangeRow(RailTP, "RAIL", TLength, TRAng, TLAng)

The function operates as ChangeRow(ComponentName, RowSpec, ParamArray)

 

I cant find a vb.net equivalent. The ChangeRow in the API is different-

ChangeRow(NewRow, CustomInput)

 

What is the ilogic equivalent to ChangeRow? I have existing custom iParts, all with a single row in the iPartFactory and i need to update the value, not change the iPart

 

Thanks

 

 

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
363 Views
1 Reply
Reply (1)
Message 2 of 2

NachoShaw
Advisor
Advisor

you can use it in the same way

 

Dim oCompDef As PartComponentDefinition = oDoc.ComponentDefinition
Dim oiFactory As iPartFactory = oCompDef.iPartFactory
Dim oiPart As iPartMember = oCompDef.iPartMember

sStrings(0) = Length 'or increase the array pending the amount of columns to populate

'update first row with array
oiPart.ChangeRow(1, sStrings)

Nacho
Automation & Design Engineer

Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

EESignature


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes