How to generate all lines between two faces

revit

#1

How to generate all lines between two faces

For example, I want to generate all lines between the beams form linked structural model and the ceiling