Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66690

Re: Add a new parameter

$
0
0

I didn't test, but it looked reasonable:

 

Category wall = doc.Settings.Categories.get_Item(BuiltInCategory.OST_Walls);
Category door = doc.Settings.Categories.get_Item(BuiltInCategory.OST_Doors);
CategorySet cats1 = app.Create.NewCategorySet();
cats1.Insert(wall);
cats1.Insert(door);
TypeBinding binding = app.Create.NewTypeBinding(cats1);

And with the code in the BuildingCoder, you can find out if you can do that.

 

I also found this one here. Maybe it helps.

 

http://spiderinnet.typepad.com/blog/2011/05/parameter-of-revit-api-31-create-project-parameter.html

 

Christian


Viewing all articles
Browse latest Browse all 66690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>