Author Topic: change lisp from applying to whole drawing to be applied to the selected objects  (Read 4068 times)

0 Members and 1 Guest are viewing this topic.

ChrisCarlson

  • Guest
Your issue starts here

Code - Auto/Visual Lisp: [Select]
  1. (setq ss (ssget "_X" (list (cons 0 "*TEXT"))))


The "_X" signifies it will grab all entities and then filter to select only *TEXT entities (RTEXT, MTEXT, TEXT).

handasa

  • Newt
  • Posts: 21
which replace text from opened excel window in background.

the point here that this lisp process the same text many time

say i have two columns as follow

green red
red yellow
yellow orange

so if i have three texts in the drawing "green , red, yellow" the result that the three texts will be "orange" which is undesired result

any suggestions ?