I am using BIM4Struc package to create Area Reinforcement.
Although, I don’t want to reinforce the whole plate so I have added python code for boundaries using this
Basically what is done is that the “create reinforcement” node has an added piece of python code
#creating curve array for outline:
l = [i.ToRevitType(True) for i in IN]
crvarray = List[Curve] (l)
And in the last row
#addition of the array to the args when calling the method accordingly to API:
rebar = AreaReinforcement.Create(doc, host,crvarray, majorDirection, defaultAreaReinforcementTypeId, bartype.Id, HookTypeId).ToDSType(new)
For input type I set “boundary=var” so I can use whatever, curves, lines etc.
And in the dynamo script I have created curves from coordinates (xyz) that makes a selection on the slab.
I have even tried to set the input to curves, lines etc but it still doesn’t work and only returns “null” and no rebar is generated.
Anybody has an idea to help me?