Create Under/Over ViewPlans through API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
Need some assistance in knowing how to duplicate levels under specific view plans.
I am able to get all the levels under a viewplan displayed in the project browser
I need to :
Duplicate them (all views and dependent views ) and placed in 2 categories by name as
-PlanName(Under/Over) (to be created dynamically )
Add the levels under 2 categories as shown below
+ All levels with Under
list all the levels from main view plan ( rename to Name_under)
+ All levels with Over
list all the levels from main view plan ( rename to Name_Over)
Apply specific template for each plan .
Just wanted to know if this is really acheivable through API for revit 2012 as some of the whislists have them included .
I also started with accessing the elements under each viewplan and tried using the Duplicate() method which throws an error " attempt to modify the project ouside the transaction ......
Thanks in advance.