How can i get Sloped Columns - Parameter Column Style?


https://www.revitapidocs.com/2017/5969d528-eb60-e268-f09e-38aca3179c14.htm

Hello,

I can not list this Parameter “StützenStil”. I can`t create filters. it is no accessable via “on board” tools from Revit!

doc = DocumentManager.Instance.CurrentDBDocument
uidoc = DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument

OUT = []

def Element(x):
    return UnwrapElement(x).get_Parameter(BuiltInParameter.SLANTED_COLUMN_TYPE_PARAM).AsInteger()


for i in IN[0]:
    OUT.append(Element(i))

In my Code everything returns to “0,1,2” (False,True, ?), finaly how can i get the textvalue[34] instead of Integer[43]?

KR

Andreas

you can do like this also,

column.dyn (8.0 KB)

3 Likes

…via node! i did it this way right now. Do you have any idea to access the Text?

I could also improve with if sentencise like : if(0, “Veritcal”, “Slanted”)

can you share you sample model…

GetColumnStyle.dyn (4.9 KB)

I cant share the model, i thing it is a general task, i dont know why dynamo calls integers instead what i see in Revit! a Text.

yes, if its drop down list you need access as integers start from 0.

column.dyn (12.3 KB)

1 Like

May be it will give better clarification…

https://forum.dynamobim.com/t/element-setparameterbyname-to-revise-structural-beam-y-z-justifcation-in-dynamo-script/54276/2?u=_vijay

1 Like

Thank you!

Do you actual know the difference between slanted by Point and slanted by angle ?