Message 1 of 9
Update iPart Author Table using iLogic
Not applicable
07-11-2018
07:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I have a iPart that has a couple of different size members in it. I have iLogic that says when the Length grows, add another hole to the pattern. This code works perfectly on its own.
The problem is that the only way to update the member is to manually expand the iPart Table in the browser and click on each member to activate the member and then accept the change in the table (see attached image). After the change has been accepted I can generate my parts.
The code below will iterate through each part and generate my members.
I need a line of code that tells the table to update, accept the change and then generate the file. Does anyone know if this is possible?
SyntaxEditor Code Snippet
ThisDoc.Save Dim oDoc As PartDocument = ThisDoc.Document Dim oDef As PartComponentDefinition = oDoc.ComponentDefinition Dim initRowIndex As Integer Dim oFactory As iPartFactory = oDef.iPartFactory Dim currow As Integer currow = oFactory.DefaultRow.Index ' Iterate All Rows of iPart Dim oRow As iPartTableRow For Each oRow In oFactory.TableRows ' Generate the member and file, (overwrites member file or creates new file) 'oFactory.CreateMember(oRow) oFactory.DefaultRow = oRow oFactory.CreateMember Next iLogicVb.UpdateWhenDone = True
