This would not work, in general, for randomly shaped 1D shapes. There are cases that it does. Connectors, with their auto-rerouting would be particularly troublesome. Likewise, 1D shapes with interior steps / jogs would not behave well.
As Yacine states, don't give up those custom line patterns!