Update Partslist in IDW is slow

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We developed an Inventor-Addin, in this addin we update cells in the partslist like this:
foreach (PartsListRow partsListRow in partsList.PartsListRows)
{
// this takes to long
partsListRow[ConfigurationConstants.InventorPartslistItemItemIdColumnKey].Value = string.Empty;
}
in a small drawing everything is ok, but we have drawings with over 80 position then this command takes everytime 10 seconds and because we update 2 cells in each row this goes up to more then 30 minutes.
the same can be reprodused using a smal macro like this.
Any help would be welcome!
Sub UpdateZelle()
Dim partsList As partsList
Dim partsListRow As partsListRow
Dim drawing As DrawingDocument
Dim partsListCell As partsListCell
Set drawing = ThisApplication.ActiveDocument
Set partsList = drawing.ActiveSheet.PartsLists(1)
For Each partsListRow In partsList.PartsListRows
partsListRow("ItemID") = ""
Next
End Sub
Regards
Daniel