Steel Bracing conenctions

Hi, Through Dynamo I am attempting to automate a steel frame, although I am struggling to get Dynamo to place the Bracing like I want, as you can see below, I want it to be all neat and cut into the other steel bracing and beams, am I just totally missing something or is there a way to get make it work, I am using StructuralFraming.BeamByCurve, ColumnByCurve and BracingByCurve.

Any help would be appreciated, I am quiet new to steel in Revit

Thanks

Al