# Revit: Get Annotation and Tag text values

**URL:** <https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144>\
**Category:** Revit\
**Created:** [November 25, 2020, 12:10pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144 "2020-11-25T12:10:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![attheeast18](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/attheeast18/32/613217_2.png) [@attheeast18](https://discourse.mcneel.com/u/attheeast18)\
**Post date:** [November 25, 2020, 12:10pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/1 "2020-11-25T12:10:05Z")

</div>

Hello, is there a way to extract the words or letter in a Text annotation and a Tag? For example i want to get the values of the Property Line Segment Tags as text in Rhino.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [November 25, 2020, 12:55pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/2 "2020-11-25T12:55:56Z")

</div>

multiple views? or one plan view? A quick way to work with these would be to Query View Elements of the active view, filter by category (annotation) once you have isolated the elements you can get the info and location to place the rhino text.

Post an example file if you still have questions.

---

<div class="post-metadata">

**Author:** ![attheeast18](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/attheeast18/32/613217_2.png) [@attheeast18](https://discourse.mcneel.com/u/attheeast18)\
**Post date:** [November 25, 2020, 1:01pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/3 "2020-11-25T13:01:49Z")

</div>

Hi rickson, actually i want to get the Text from revit and bake it in rhino. I want to bake the text from revit into rhino. I cant seem to do this by simply querying the annotation category because once I plug the Filtered elements into Element Geometry and then into a Text component, it doesn’t get the written text.

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [November 25, 2020, 1:04pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/4 "2020-11-25T13:04:07Z")

</div>

Use the inspect component on the element then right click to get all parameters to find the one you need, it should output as a string.

---

<div class="post-metadata">

**Author:** ![attheeast18](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/attheeast18/32/613217_2.png) [@attheeast18](https://discourse.mcneel.com/u/attheeast18)\
**Post date:** [November 25, 2020, 1:13pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/5 "2020-11-25T13:13:12Z")

</div>

Sorry rickson, there doesnt seem to be the actual value of the tag. Is there another way?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/0/c/00cc8e502a3babc6bb668da836c1324cd4f8f01f.png)

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [November 25, 2020, 1:14pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/6 "2020-11-25T13:14:53Z")

</div>

Just noticed that myself, it looks like you will need to get the info from the line vs the tag. There’s probably a way to get the host but not seeing it at the moment.

---

<div class="post-metadata">

**Author:** ![attheeast18](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/attheeast18/32/613217_2.png) [@attheeast18](https://discourse.mcneel.com/u/attheeast18)\
**Post date:** [November 25, 2020, 1:16pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/7 "2020-11-25T13:16:45Z")

</div>

Ye too bad. Maybe @scottd @eirannejad can help?

---

<div class="post-metadata">

**Author:** ![Rickson](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/rickson/32/690545_2.png) [@Rickson](https://discourse.mcneel.com/u/Rickson)\
**Post date:** [November 25, 2020, 1:21pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/8 "2020-11-25T13:21:32Z")

</div>

it looks like you need to get the info from what was tagged…

[https://jeremytammik.github.io/tbc/a/0131\_tag\_association.htm](https://jeremytammik.github.io/tbc/a/0131_tag_association.htm)

---

<div class="post-metadata">

**Author:** ![eirannejad](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/eirannejad/32/775509_2.png) [@eirannejad](https://discourse.mcneel.com/u/eirannejad)\
**Post date:** [December 3, 2020, 12:24am UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/9 "2020-12-03T00:24:39Z")

</div>

@attheeast18  
The tag text is a class property on the `DB.IndependentTag`. I made a tiny python component that extracts the text from the tags. You should be able to pass any tag into this:

 ![Screen Shot 2020-12-02 at 16.23.00](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/2/4/b/24b352813b7183e2f7df7f4ddb5a148a6eb53bb0.png)

[PropertyLineSegmentTags\_v20.rvt](https://discourse.mcneel.com/uploads/short-url/iyuDKExSefwn5VRVZaTIN4EVNxq.rvt) (404 KB) [PropertyLineSegmentTags.gh](https://discourse.mcneel.com/uploads/short-url/wx8ujJmaDJFOa7GzFQqBejw89Bx.gh) (10.2 KB)

---

<div class="post-metadata">

**Author:** ![christopher.pires](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/christopher.pires/32/499346_2.png) [@christopher.pires](https://discourse.mcneel.com/u/christopher.pires)\
**Post date:** [February 2, 2023, 4:27am UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/10 "2023-02-02T04:27:22Z")

</div>

Is it possible to find the ID Number that the tag was associated with?

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/8/b/2/8b2fdb113b2203f3f9f67cad95eb55db8291e41b.png)

---

<div class="post-metadata">

**Author:** ![Japhy](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/japhy/32/487647_2.png) [@Japhy](https://discourse.mcneel.com/u/Japhy)\
**Post date:** [February 2, 2023, 1:48pm UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/11 "2023-02-02T13:48:33Z")

</div>

replied in the thread you created [Tag Element Host](https://discourse.mcneel.com/t/tag-element-host/154200)

---

<div class="post-metadata">

**Author:** ![arcade.smith](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/arcade.smith/32/506800_2.png) [@arcade.smith](https://discourse.mcneel.com/u/arcade.smith)\
**Post date:** [March 18, 2025, 1:28am UTC](https://discourse.mcneel.com/t/revit-get-annotation-and-tag-text-values/113144/12 "2025-03-18T01:28:01Z")

</div>

thanks @eirannejad

this works great - perfect for finding all material tags in a model that fell off their host
