Create Under/Over ViewPlans through API

Create Under/Over ViewPlans through API

Anonymous
Not applicable
458 Views
1 Reply
Message 1 of 2

Create Under/Over ViewPlans through API

Anonymous
Not applicable

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.

0 Likes
459 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable

Hi again,

Since I havent received any replies on this post.... wanted to update the progress so far....

 

I am sucessfully able to acheive the requirement partially  creating the view plans anf applying the templates....but  unable to set the dependency property.

 

Each viewplan created is displayed as an independent Viewplan.

 

Is there any workaround to change the Viewplan readonly property /   Change the dependency to Primary /Dependent on any other viewplan???

 

Is this possible through with the API as I find that the dependency property of the Viewplan is a readonly property...

 

 

Thanks

0 Likes