• Blog posts


    By Dennis Collin


    Recently I posted about the AutoCAD Express Tool, Extrim command which allows users to trim elements within or outside a polyline boundary. Whilst this command is useful it only allows the selection of a single boundary whereas sometime multiple boundaries need to be selected, for example large scale urban street layouts.


    Copy or type the following into a simple text editor like Notepad and save the file as MX.txt. The file extension will need to be changed to ‘.LSP’ (Lisp) extension.


    Once complete this Lisp routine can be loaded into AutoCAD via the Appload function. This process is outlined on the link below.


    The sample code provided will only select lightweight polylines drawn on Layer 0 (Zero) and coloured yellow. The routine just trims items so any residual items will need to be deleted by conventional means after. With some adjustment of the code, the editing behaviour could be altered to suit.