- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to create a text note to add information to a view. I can easily create the text note, but I can't seem to get a list of all of the 2D annotation Text types within a project.
I've tried:
IList<Element> getTextStyles = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_TextNotes).WhereElementIsElementType().ToElements();
and
IList<Element> getTextStyles = new FilteredElementCollector(doc).OfClass(typeof(TextNote)).WhereElementIsElementType().ToElements();
Both return no results.
Is there a way to do this?
Thanks!
Solved! Go to Solution.