Collecting all types of a family available in document

Not sure if you have seen these or not but its a good place to start. These are posts I have started in the past with similar topics. I think the first one should be close to what you want. The solution allows you to select all instances of a particular type.