Message 1 of 2
iLogic iPart Update Factory Table Reference Paramter

Not applicable
08-02-2018
03:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Guys!
I'm looking for a solution of the following Problem:
If i change some values in my iPart i get the following Error Message, which tells me to update the current values in the iPart table.
ErrorI'm to lazy to go through all rows in the iPart, so I tried to fix the problem with generating all the Parts.
See following code:
Sub Main() Dim partDoc As PartDocument partDoc = ThisApplication.ActiveDocument Dim oDoc As PartDocument = ThisDoc.Document Dim oDef As PartComponentDefinition = oDoc.ComponentDefinition Dim initRowIndex As Integer Dim oFactory As iPartFactory = oDef.iPartFactory Dim oRow As iPartTableRow If partDoc.ComponentDefinition.IsiPartFactory _ Or partDoc.ComponentDefinition.IsiPartMember Then For Each oRow In oFactory.TableRows On Error Resume Next oFactory.DefaultRow = oRow 'get on current row oFactory.CreateMember(oRow) InventorVb.DocumentUpdate() iLogicVb.UpdateWhenDone = True Next Else MessageBox.Show("This is no iPart") End If End Sub
So the code works, generating all parts. But it does not update the table.
If I change the current row after I run the code I get the same error Message as above.
Is there a possibility to update the table without going through the error messages?
Thanks for your help!