Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a way get notified / subscripe to change of active view in runtime in revit api ?
Solved! Go to Solution.
Is there a way get notified / subscripe to change of active view in runtime in revit api ?
Solved! Go to Solution.
Yes, you can use two events of Revit API : ViewActivated and ViewActivating.
What to you want to do when you change the active view?
I am using a window (dialog box) that has a table listing all walls in a view.
since it is a dialogbox, a user can change view while the window is open, but the data in tahe table will not update unless we can know that the view has changed.
I will also try your suggestion
Is it a windows form dialog box? I don't know if you can perform this by changing the active view in revit.
You can put a combobox in your form to select a view, and display walls information about this view and change the active view in the application.
Tried ViewActivated event to achive list update when view changes. Worked nicely. Thanks Guillain