- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have an issue with tags when tagging objects which are linked into the current model.
This mainly happens with Doors, the tags are placed in the Main model, and they tag doors which are in one of several building models that are linked.
The problem is that when a door is deleted, the tag changes into a '?' as it can't find its host - the issue is that the '?' symbols are difficult to find - I'd like a routine which will select them.
I can get the door tags with a FilteredElementCollectotor:
FilteredElementCollector fec_doortags = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_DoorTags);
I'd like to iterate through the FEC and check if the tags are hosted - but the problem is that I can't find a property or parameter which refers to the host.
I've tried the IndependantTag Class - but I believe this only refers to the tagged element, not the tag itself.
Is there any way I can test the tag element to find out if its hosted or not?
Thanks.
Solved! Go to Solution.