Currently when you link a dwg drawing, Revit is recoginising lines and polylines that are connected at endpoints as multisegmented lines and the trim/extend tool does not work for these. It would be great if this feature was added.
https://forums.autodesk.com/t5/revit-structure-forum/cad-underlay-extend-issue/m-p/8588450#M30868