Message 1 of 12
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Community,
This may be somehow old but I cannot find a good solution for my specific case here 🙂 I’m working on a Revit addin and would like to prompt user to select a room in model. The room can be from either the current model or the linked models. With the help from previous posts in the forum I’m able to make some progress so far, but still none of the approaches is ideal. Here are what I’ve tried and the downside –
- PickObject(ObjectType.Element, roomSelectionFilter). This works great for rooms in current model, but won’t allow user to select rooms from linked models.
- PickObject(ObjectType.LinkedElement, roomSelectionFilter_linkedRoom). This is the opposite of 1.: works great for rooms in linked models, but won’t allow user to select rooms from current model.
- PickObject(ObjectType.PointOnElement). This one allows user to select elements in both current and linked models. However, it’s not limited to rooms - or at least I haven’t come up with a proper ISelectionFilter to achieve so.
So, any ideas? I’m thinking if there’s a way to combine 1. and 2. in one pick, or maybe there can be a ISelectionFilter to filter out anything that is not a room for 3.? Appreciate your help!
Solved! Go to Solution.