Adding RoomTag to Selected Viewports
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My girlfriend (architect) asked me (software developer) to write a small add-in for her. This is her goal:
I have a sheet with multiple interior elevations. Presently, I have to activate each elevation in order to place a room tag. I would like to be able to highlight/select multiple elevations and tag them without activating each view.
I was able to find some easily understable code segments to do the following:
- Get all of the rooms in a document, and tag them
- Get a list of selected elements
When I did get a list of selected elements using the UIDocument's Selection property, it returned all Viewport objects. For instance, if I selected 3 of the interior elevations, I would get a list of 3 Viewports.
I couldn't seem to find a way to list the rooms specific to those viewports selected, in order to be able to tag them.