How to identify orphaned tags?

Hey @rlosh,

So I had a look at it for you.

There’s good news & bad news.

So your Revit file is all about material tags (incidentally your file did not include any orphaned tags).

The good news is that truly orphaned tags can be identified. Though they cannot be selected through Dynamo (I believe). When you use a filtered element collector, the orphaned tags throw a ‘null’ when toElements is used, this freaks out most nodes which have been built. So I had to do my own Python to get them.

The bad news is that Material tags do not use TagText & their ‘Schema’ is not accessible. So you do not have a method of reviewing ‘?’ values as you had hoped.

Instead I would suggest you get the materials used in the tagged elements & review their properties. However this won’t work on ones like this one… As it thinks it’s not orphaned and the host element has a material description in all layers.
image

Alternatively, there may be a method of printing your drawings and identifying ? as a pattern somehow in the drawing, but I don’t know how to do that.

Below is my graph and screen grab, hopefully they are of interest.

Cheers,

Mark

Orphan Rescue-MKA.dyn (48.5 KB)
New folder-MKA.rvt (1.4 MB)
linking.rvt (1.2 MB)