Place all family types

StructuralFraming.BeamByCurve does not seem to be what is needed. You will find how to use FamilyInstance.ByPoint instead here: