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

Stair Support Parameter Binding

$
0
0

Hi

I wanted to see if anybody could shed some light on this.

I have been having a problem with parameter binding to a particular category through the API. This is the 'Support' category that is a child of 'Stairs'.

 

Through the UI, this simply is done by checking this box:

csds360_0-1597249425861.jpeg

 

When you get the category from the element in Revit via RevitLookup it returns:

Category of BuiltInCategory.OST_StairsStringerCarriage with .AllowsBoundParameters = True

 

 csds360_1-1597249515676.jpeg

 

When you get the category via

Category.GetCategory(Doc, BuiltInCategory.OST_StairsStringerCarriage) it returns:

Category of BuiltInCategory.OST_StairsSupports with .AllowBoundParameters = False

 

This is preventing attaching parameters to the element via the API (as can be done in the UI).

 

Does anybody know if there is a way round this, or is this in the API by design or possibly a bug? 

 

Any help would be greatly appreciated?

Many thanks.

 

  


Viewing all articles
Browse latest Browse all 66735

Trending Articles