I used a LISP routine in Autocad 2004/2006 (English Version) to delete duplicate entities in the drawings.
Now the routine fails in Draftsight V1R5 X64 (Italian). I tought a language issue but the commands inside don't seem language dependant.
May anyone help me to find another one?
Thanks
EDIT:
If you execute this on command line
(setq a1 (ssget))
then you can choose some entities and the selection set is returned after.
Now you can execute this second command:
(setq refen (ssname a1 0))
and the name of the first entity is assigned to the refen variable.
Now you could execute this third command
(setq refrec (entget (refen)))
but, instead to assign the parameter list of the entity to the refrec variable (in Autocad it works), an error arises on command line:
Invalid Parameter
but you can obtain the right behaviour in DS with the syntax
(setq refrec (entget refen))
and this is odd because above entget doesn't need the parenthesis but needs them below
(setq refrec (entget (ssname a1 1)))
