Automating the beam modelling by selecting the lines in revit

This is Element Binding behavior and is intended. Review the thread linked for information on how to resolve.