Setting a Views ViewCat and ViewSubCat

Setting a Views ViewCat and ViewSubCat

Anonymous
Not applicable
464 Views
1 Reply
Message 1 of 2

Setting a Views ViewCat and ViewSubCat

Anonymous
Not applicable

I'm trying to make a program that creates views ans sheets automatically but I cant seem to find a way to change a ViewPlan elements ViewCat and/or its ViewSubCat in order to have my views categorize themselves in my project. Does anyone know the way to do this?

0 Likes
Accepted solutions (1)
465 Views
1 Reply
Reply (1)
Message 2 of 2

Sean_Page
Collaborator
Collaborator
Accepted solution

You need to get the view created and then set it's parameters.

 

View view = View.Create();
view.get_parameter(BuiltInParameter).Set(YourValue); //or for custom.params
view.LookupParameter("ViewCat").Set("Cat");
Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect