CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedUsing wildcards in scripts

 Post Reply Post Reply
Author
harrissjt View Drop Down
Newbie
Newbie


Joined: 28.Jan.2015
Location: Australia
Using: Autocad 2012 + Autocad 2015 for Mac
Status: Offline
Points: 10
Direct Link To This Post Topic: Using wildcards in scripts
    Posted: 04.Feb.2015 at 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
-ATTEDIT
N
N
A*-TITLE
TITLE1
*
COMPRESSOR GC-201 UPGRADE
TA2015 GC-701 CCC CONTROLLER UPGRADE
;------------------------------------------------------------
;EDIT PROJECT TITLE-R
-ATTEDIT
N
N
A*-TITLE
TITLE4
*
МОДЕРНИЗАЦИЯ КОМПРЕССОРОВ 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
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,070 seconds.