- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
OK. So that tip likely won't help you in this specific situation. So in Inventor's API or iLogic, Document objects and this PropertySets object both have this property called 'Dirty'. When you first open a document, the value of this property is False by default. When anything happens while that document is open that modifies it in a way that may cause it to want to save when you close it, that will change the value of that property to True. So checking the value of this property is one way of determining whether or not you may need to save a document. Lets say I have a rule that checks the value of an iProperty, and if the value isn't what I'm expecting, it will then change its value. If I just opened a document, then ran this rule, it may or may not have made any changes to that iProperty, because it may have not needed to change the value of the iProperty. At the end of that rule, I may want to determine if any changes were made that may need to be saved. I can check the value of that 'Dirty' property, and if its value is True, that means I should save the document, but if its value is False, I don't need to save the document, because no changes were made. It's just one fairly simple way to avoid saving a document, if its not needed, in case it may take a long time to save the document, and you want to avoid if possible.
So, just to recap, after reading your response, I don't believe you would benefit from using this technique here in this case. It's just a tip to keep in mind as your future rules get more complex.
Wesley Crihfield
(Not an Autodesk Employee)