09-21-2023
06:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-21-2023
06:35 AM
Thank you for bringing the Master model state to my attention. This led me to the solution for storing the iProperties with Apprentice.
After using FilePropertySets instead of PropertySets everything seemed to work as before, except the edited iProperties were not save to the document. I have now added oApprDoc.FilePropertySets.FlushToFile to write the changed iProperties to the file and this solved the last issue I had with saving the changes.
If I understand it correctly there now is:
- Model State Factory Document (a.k.a. master model state / primary model state) which iProperties can be read and written with Apprentice via FilePropertySets + FlushToFile
- Model State Member Document(s) (a.k.a. custom model state) which iProperties can only be read with Apprentice via PropertySets, and only the currently active ModelState is visible.