You can use Power Trim to extend lines to boundaries.
This method lets you lengthen or shorten an entity to an invisible extension of another entity. Sub-entities of blocks and references are recognized as boundaries.
There are some limitations:
- You cannot extend polylines or splines.
- You cannot change a line's direction.