StructuralFraming.BeamByCurve

Check this out & you’ll get the concept behind it