Hello yvandelafontaine,
Table-driven ifeatures may not be supported when inserted as a punch tool.
Link to a similar discussion.
http://forums.autodesk.com/t5/inventor-forum/problem-using-ilogic-and-ifeature-changerow/m-p/6464113...
However as a workaround, you may implement it using the Inventor API. Following is a sample code snippet that does something similar
Sub changerow()
Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.ActiveDocument
' This assumes that the punch tool feature is selected before running this code.
Dim oPunchTool As PunchToolFeature
Set oPunchTool = oPartDoc.SelectSet(1)
Dim rowtobeset As iFeatureTableRow
Set rowtobeset = oPunchTool.iFeatureDefinition.iFeatureTable.iFeatureTableRows.Item(4) ' Selecting the fourth row in this case.
oPunchTool.iFeatureDefinition.ActiveTableRow = rowtobeset
End Sub
Also, if you may want to convert the above VBA code into iLogic, please refer below link.
http://adndevblog.typepad.com/manufacturing/2015/11/convert-vba-to-net-ilogic.html
Let me know if this helps.
Regards,
Sajith
Sajith Subramanian
Autodesk Developer Network