Programmatically select a PartsListRow to highlight geometry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am developing an Add-in for my company and I am facing a performance issue regarding selection in the Drawing environment.
The Goal: I need to programmatically select a specific item (row) in the Parts List. My intention is to replicate the manual behavior: when a user clicks on a row in the Parts List, Inventor automatically highlights/selects the corresponding component on the sheet. This manual behavior meets my needs perfectly.
The Problem: Currently, I am trying to achieve this highlighting by iterating through DrawingCurves and adding them to the SelectSet. However, this approach is causing significant performance lags (freezing) because some of our parts have a very large number of curves.
The Question: Is there a way to directly select the PartsListRow object via the API (adding the row itself to the SelectSet) so that Inventor handles the geometry highlighting natively, avoiding the need to iterate through curves?
I have searched for a method to "Select" the row item but haven't found a working solution yet.
Any suggestions or code snippets would be greatly appreciated.
Thank you!