Finding and Selecting all instances of an element
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, so I'm new to the Revit API and Revit in general, so sorry if this is in the wrong place or formatted weird.
So, I'm trying to make an add-in that will take a group, find all instances of a specific element, then duplicate the original group on top of the center of the found elements. In this case, I want to find all the Ceiling-Hosted Air Terminals in my drawing and duplicate the group on top of their center point. I'm using the My First Revit Plugin lessons as sort of a base, but it's not much help for what I'm trying to do. The code I have already is copy/pasted over from these lessons, but I'm not entirely sure how it ties together, so I can't use it very effectively. If the answer is too much to put here, I understand, but it would be a huge help just to be pointed in the right direction to research the solution myself, as that hasn't given me much either. I'll attach my existing code in a .txt file, but I'm making the program in Visual Studio 2022. Again, sorry if this is formatted weird or in the wrong spot.