- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm writing an add-in that auto-populates some part iProperties. If the user opens a part (or an assembly containing some parts) whose iProperties are out of date, I want it to turn on the "RequiresUpdate" flag for the part(s), so the little lightning bolt symbol lights up, informing the user the part needs to be updated. If they update the part, I'd then like to respond to that event and auto-populate the iProperties (how to do so will be another question, since there doesn't seem to be a "OnUpdate" event... but I'll cross that bridge after I figure this one out).
So, I need some way to turn on the "RequiresUpdate" flag for the part. However, I want to do this without dirtying the part, because I don't want my add-in to be modifying a bunch of files immediately upon being opened, causing them to need to be saved even though the user didn't change anything.
The only thing I've found that comes close to working is to create a dummy parameter, change its value, and then set the Dirty flag for the document to False. However, I don't like having a dummy parameter in every part my add-in works with. I'd like to find a way to turn on the "RequiresUpdate" flag without needing to change or add anything that the user will see.
I'd be happy with any clean solutions or workarounds, as long they don't impact performance or leave things like dummy parameters lying around for the user to see.
Thanks in advance for any suggestions!
Solved! Go to Solution.