I am trying to get a view set up that would show me some information around the families we are placing in our projects. Using this as a high level view to help Identify family issues that are bigger then just one project. I would like to get a list of the families - the size of that family - total # of instances it is placed across all projects that have been opened over the last X amount of time. Using this information have another column showing total MB size this is adding across all projects.
My thought process is that spending time cleaning up a 20mb family that is placed 10 times is not as valuable as working on a 7mb family that is placed 5000 times.
So far I have tried - Revit-event – in a table. Rows are Family.file.name. Las value of file size is the first metric. The part I am not sure about is how to get the count. dependantElementCount.FamilyInstance? the Sum of this column give me the numbers I think are close. I am not sure, Should I go to a snapshot beat?
Any help would be appreciated… Thank you!
@Gilly OK. I can see that you have a filter on top set to the folder for any document that has family.file.name field. That will ensure that you get three documents where action.name is:
Family - user opening a family document
Existing Family - user loading a family into a model that already has that family so they are overriding existing
New Family - The user loaded a family into a model that didn’t have that family so they added a new one to the project
These three events will have the property called family.file.name. They should also have a file size if they are not system families that have never been saved before. You can get the latest value of file size, and that will show you how big that family is. So far so good.
The number of instances of a given family that are placed in a model is not readily available. It would take a little too long for us to collect all types and count how many instances there are of a given type so we don’t do that on the fly. However, I think that if we wanted to, we could easily check for every Existing Family event if there are already placed instances of a given family and count that. It would be quick because we are looking for just one family, and we know that it exists in the model already. I put that on our TODO to have that info added to the Existing Family event.
In the meantime, you can get that from Snapshot since that will have info for every instance of every element.
Ps. The dependantElementCount.FamilyInstance property tells you how many nested Family Instances you have inside of that family. It’s information about that particular family, not about the project.