Getting Tag info thru VBA...

Hello All.

Could someone help me out with an example that shows the proper usage of the GetTag Method? There is no example shown in the help files. All of the examples related to Tags show to scan for the Tags themselves, then return the values. I am trying to filter for tagged elements, then return the value of a known tagset and tag. 

Any assistance would be greatly appreciated.

Parents Reply
  • One way I can think to use it would be getting the tag sets from the active design file, iterating, and searching for a specific Tag Name:

    Dim ts As TagSet
    Dim s As String = "Revision"
    Dim te As TagElement
    For Each ts In ActiveDesignFile.TagSets
        te = ele.GetTag(ts, s)
        ' Do something with it here
    Next ts

    Though you might as well just iterate using the GetTags method Tongue Tied

Children
No Data