Using the (entdel entity) solves the problem but I want to learn the Vlisp/ActiveX method. Is there a methood in ActiveX that works exactly like the (entdel entity).
You're welcome.
IMO, folks learning VLisp/Activex take it too far (myself included). If you have something that works, why not use it? In this case, my code is already obtaining the <ename> (granted, I reset the symbol for it the vla-object, but it would be simple to use a different symbol) so use the (entdel) method before & after the selection process. Otherwise, you could iterate the selection set and remove the object from it...but this would undoubtedly take a bit more time, although probably not noticable to the user.
Again, IMO, if you REALLY want to use ALL ActiveX methods & properties then dump lisp and go to VBA. But when using lisp, use ALL of the available tools, not just those applicable to ActiveX......of course, I learned this just as you are now, through lots of trial & error and posting questions.