Message 1 of 2

Not applicable
06-19-2019
09:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm attempting to get access to my view's current phase via the API to compare the current phase to the phase created of the elements in that view. I.m having trouble accessing the phase of the view or floor plan. I've checked out and used several previous posts on this forum and have had no success.
Here's my code for trying to access the view's current phase.
View active = commandData.Application.ActiveUIDocument.ActiveGraphicalView;
string currentPhaseId = active.get_Parameter(BuiltInParameter.VIEW_PHASE).AsString();
Thanks in advance!
Solved! Go to Solution.