I believe the "Neo Firewall Line" wall accessory does what you want. It
is mentioned in the very old thread below: see the second-to-last post
by LiHigh for an updated version -
https://community.graphisoft.com/t5/Project-data-BIM/Everyday-Problems-a...