TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on November 30, 2005, 11:13:50 AM
-
ok ..let's take a look at this..
this is a part of a lisp..
(setq ega1 (entsel "Sélectionnez un bloc contenant des attributs..."))
(setq ega2 (entget (car ega1)))
(setq ega_bname (cdr (assoc 2 ega2)));;block name
(setq bega (ssget "X" (list (cons 0 "INSERT") (cons 2 ega_bname))))
(setq egax1 (entget (ssname bega 0)));;détail de l'entité
(= (cdar egax1) (car ega1)) ;; <-- result NIL !!?? ??
;;result:
;;(cdar egax1) = <Nom d'entité: 7ef86600>
;;(car ega1) = <Nom d'entité: 7ef86600>
Why ?? :?
-
Use:
EQ
-
outch !!...
this is hurting me..... :ugly:
but thanks...never forget anymore.. promise ! ^-^