Internal Stirrup Creation

Hi All!

I’ve done a script in dynamo so I can create internal stirrups when necessary. But I don’t know why sometimes they make the stirrup smaller than the other within a column with the same section. Does anyone know anything about this? I’ll put some images so it will be more clear to understand.


view from the top in 3D view:
image

can you please post the DYN and hopefully a sample revit file with some stirrups in it?