Works for me. tho I have other lisp that have this already add (vl-load-com)
vl-load-com is need with commands that start with vla, vlax, vlr or it will error out.
(defun C:foo ()
(vl-load-com)
(setq poly_p (entsel "\nSelecciona una parcela exterior: "))
(setq nombre_ent (car poly_p))
(setq obj_n (vlax-ename->vla-object nombre_ent))
(vlax-invoke (vla-get-modelspace (vla-get-activedocument (vlax-get-acad-object))) 'addregion (list obj_n))
(princ)
)