How to generate all lines between two faces

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