Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Create a lisp routine to change drawing numbers

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
neil.kelly
1177 Views, 3 Replies

Create a lisp routine to change drawing numbers

I am trying to create a lisp routine that will do the following:

 

  • Individually open approx. 15,000 drawings
  • Globally change specific text that varies from drawing to drawing
  • Save and close drawings

We are in the process of changing the numbering convention used to another, more functional system.

 

I will need to be able to list all 15,000+ drawings and what they will need to change to, and have the lisp basically open each drawing and run a global text change that will pick up and of the reference or title block information that contains that number and change it to what I specify as the new number, then save and close.

 

Any advice or help with creating this would be greatly appreciated!!!

 

-Neil

3 REPLIES 3
Message 2 of 4
hgasty1001
in reply to: neil.kelly

Hi,

 

My advice would be to contact a profesional developer or a service provider in your area.

 

Gaston Nunez

 

 

 

 

Message 3 of 4
lgabriel
in reply to: neil.kelly

In Excel, create a  table listing the following

 

Drawing File Name     Existing Text        New Text

 

Save as a comma delimeter file

 

Autolisp program would then open *.csv file, read one line at a time, which will:

 

1. Open drawing file

2. Change text

 

Keep in mind, any search and replace text lisp program will change every occurrence of the text throughout the drawing. Do not know if this is an issue.

 

I have serach and replace text Autolisp programs which would have to be modified to read the old and new text inorder to make the change (very minor).

 

Send me the CSV file with 5 drawing files and the five AutoCAD drawing files to lgabriel@whsystems.com and I will see what i can up with.

Message 4 of 4
stevor
in reply to: neil.kelly

As you look in this forum, or by google,

there are several ways to access folders of DWGs.

 

If you present the criteria for the TEXT changes,

you may get more sugestions.

 

Also helpful, a small  part  of a DWG as an  example,

in an DWG vesion, with no reactors or special fonts.

S

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost