Display full version of the post: Using wildcards in scripts

harrissjt
04.02.2015, 04:06

I am trying to write a script in Autocad 2012 to change attributes in a drawing title block, with limited success.  see script below; ;------------------------------------------------------------;EDIT PROJECT TITLE-E-ATTEDITNNA*-TITLETITLE1*COMPRESSOR GC-201 UPGRADETA2015 GC-701 CCC CONTROLLER UPGRADE;------------------------------------------------------------;EDIT PROJECT TITLE-R-ATTEDITNNA*-TITLETITLE4*МОДЕРНИЗАЦИЯ КОМПРЕССОРОВ GC-201КР2015 GC-701 МОДЕРН-ЦИЯ КОНТРОЛЛЕРА ССС;------------------------------------------------------------QSAVE ;------------------------------------------------------------The above works perfectly, BUT...I would now like to modify the script to use a wildcard for the 'Enter string to change' line.  This wildcard is to enable the change of ANY existing string to the replacement string. I have tried using *(asterix), but that doesn't appear to work for full strings. Any advice would be greatly appreciated. NB.  I'm trying to keep this really simple and script based only.  So please, no LISP routines. Cheers,Steve