Finding clash point between polyline and AutoCAD Entities

Hi

See this , it may help you