https://www.cad-ray.com/lesson/polyline-trimming-in-medit/
Polyline Trimming in Medit