I started to run in the script:
DELDUPVERTEX ALL 1E-12
but if there are no LWPOLYLINE in the drawing, the program closes and ALL is then considered as a command.
Is there any other way to put DELDUPVERTEX in a script and to avoid stopping the script (not running DELDUPVERTEX when there are no LWPOLYLINES)?
Of course, with no manual input (I intend to run this code on multiple files).