Check if revit Families contain (reference lines or new line styles)

Hello,

I was wondering if it is possible to create a Dynamo script that can check if families contain unnamed reference lines, as well as identify any new line styles that are not being used in the project. Currently, it takes a lot of time to manually check each family, and I would like to streamline the process with a script.

I have been successful in using Dynamo to find and delete new style lines in the project, but I am unsure how to accomplish this same task for families. If anyone could provide assistance, it would be greatly appreciated.

Thank you,

Check out Gavin’s youtube video on applying parameters to multiple files. You could use similar methods to open, search, return yes and no values, then close to achieve a search through an entire folder.