2d Family based on the line of wall, floor, etc. layers in cross-section

I would like to computerise the process of creating a family of interrupted lines representing furniture in cross-section. What I would like to achieve.
Determination of the line of the membrane layer
2. creatively along this line of the family based on it

I was thinking about using familyType.CompoundStructureLayers and filtering out functions.
AD 2, then FamilyInstances. ByFace to create a family.

I have no idea how to create a line in a line running along the membrane layer in a given cross-sectional view
Does anyone have any idea how to do this?