Currently, if we want to toggle the visibility of several rows in a Parts List via the API, we have to iterate through them and toggle them one by one. There is a noticeable performance hit for each row. Processing just a few dozen rows takes several seconds.
There should be a way to toggle the visibility of several specified rows at once via the API, as we can via the Parts List editor window. It would be nice to have a method for explicitly setting a collection of rows to Visible or Invisible, as well as a method for toggling a collection of rows (visible becomes invisible, invisible becomes visible).
Related thread on Inventor forum: iLogic: Speed up performance of toggling Parts List row visibility