Error al selecionar
Publicado por JORGE VERGARA C (6 intervenciones) el 03/01/2020 16:14:44
espero me puedan ayudar con este codigo que al ejecutar tiene un error al seleccionar todos los textos que debe reemplazar, dejo el codigo para que me indiquen en que pude haber errado al hacer el contador
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(defun C:cambiatexto ()
(setq Valortxt "Nuevo")(terpri)
(Prompt "Seleccione Textos a Sumar : ")
(Setq num3 (ssGet "x" (List (Cons 0 "TEXT"))))
(If num3
(Progn
(Setq K 0)
(Repeat (ssLength num3)
(Setq Nombre (ssName num3 K))
(Setq Numero (Entget Nombre))
(if (= (Cdr (Assoc 1 numero)) "viejo")
(Progn
(setq fi (subst (cons 1 Valortxt) (Assoc 1 numero)numero))
(entmod fi))
(Setq K (+ K 1))
)
);fin Progn2ty
);Fin IF
(Print)
))
Valora esta pregunta


0