Angelo2449
Guest
Hello everyone,
with this code:
I draw the string > palacenax < which could be, for example:
> building
or
><nome 22c6fd9d240="" entità:=""> (124.923 199.459 0.0)
how can I distinguish the two conditions so that I can extract the selected string with :
</nome>
without error.
Thank you.
with this code:
Code:
(while (or (= palacenax nil) (= palacenax "))
(setq titlex (strcat "select the name of the building > "))
(princ "\n")
(setq palacenax (entsel titlex)
(princ "\n")
);
> building
or
><nome 22c6fd9d240="" entità:=""> (124.923 199.459 0.0)
how can I distinguish the two conditions so that I can extract the selected string with :
</nome>
Code:
(setq palacenax (entget)
(setq palacenax (cdr (assoc 1 palacenax)))
Thank you.