Message 1 of 2
Create Plan Views with out Duplicates
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The follow code creates a new plan view based on a level. It gets it's name from the level. Unfortunately if it's run again it creates a duplicate view who's name is the same except it appends a (1). See image. I'd like it not to create the duplicate view. Not sure how or where to loop through the existing view names.
Any suggestions?
ViewPlan newfpview = ViewPlan.Create(doc, vft.Id, level.Id);
newfpview.Name = level.Name;