Dynamic model update after loading family
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello fellow Revit-enthusiasts,
Somewhere in 2015 I wrote a post where I asked for the correct usage of a dynamic model update (compared to the idling event). I've experimented a little bit with the dmu since then. There's one issue I haven't fixed up till now. I'm trying to use the dynamic model update to register at which date and time elements are created or modified. This information is stored in project parameters which are assigned to the corresponding categories for both instances and types..However, when I edit a family and afterwards reload it in to my project, each type of the family seems to be recognized as a modified element, even though in some cases I modified only one type by changing one or more of its parameter values. This situation causes Revit to change all projectparameter values in which the date and time are stored for all the types from the family which is being reloaded after editing.
Example: A structural column family has type "200x200" and "200x400" which are both created by inserting the family at 23 february 2016 at 3:00 PM. When I edit the family I only change some parameter values of type "200x400". But when I reload the family both type "200x200" and "200x400" are recognized as being modified which causes their parameter values used for the storage of time and date being set to a new value (for example 3:15 PM) while it's supposed to recognize only type "200x400" as being modified.
Some background information. I'm using GetAddedElementId's and GetModifiedElementid's for the retrieval of the relevant elements. Can someone explain how to correctly check if individual types have been modified when I load them back to my project? Do I need to store all the information (parameters) in a temporary file perhaps or does the API already provide me with a more direct approach?
Thank you all in advance,
Tim