TRIM

The TRIM command trims objects at a cutting edge defined by other objects.

In AutoCAD MEP 2024 toolset, TRIM only works on plumbing lines and segments of duct, pipe, cable tray, and conduit. However, fittings are not automatically inserted. For more information, see Trim or Extend Objects in the AutoCAD Online Help.