Creating penetrations using line styles and intersection points

So i am trying to create a script which places a penetration family onto a structural framing element by face.
The family has parameters for width and depth which i want to be able to control by the line style which will have ‘Peno Size - Width x Depth’ as the name. I then get the intersection point of the line and the beam and place it at that point on the beam and it automatically puts the size of the penetration in based off the line style. See picture of floor plan.
Line%20Styles

And the script so far:
Script
I have started down the bottom and the stuff at the top is the old stuff for placing the peno at a certain location along the curve.

Is this possible? Any help is appreciated :slight_smile: