Lisp For AutoCAD DWG filename?

Lisp For AutoCAD DWG filename?

leonardo.alvarez4SZJL
Advocate Advocate
4,188 Views
22 Replies
Message 1 of 23

Lisp For AutoCAD DWG filename?

leonardo.alvarez4SZJL
Advocate
Advocate

I am running AutoCAD Electrical 2022, Windows 10.

 

Hi Everyone, Is it possible for a LISP to grab attributes and combine them to rename the DWG name itself?. Here is an example.

I have a title block which contains these attributes:

 

DWG#: 5524D85

Rev: B

Dwg Desc: One Line Diagram

 

The Lisp Routine would grab these attributes and rename the DWG as follows: 5524D85 (B) One Line Diagram.

 

Best Regards,

Leo

 

0 Likes
Accepted solutions (2)
4,189 Views
22 Replies
Replies (22)
Message 21 of 23

3wood
Advisor
Advisor
Accepted solution

I've updated the file.

Please download from here and try it.

Message 22 of 23

leonardo.alvarez4SZJL
Advocate
Advocate

@3wood 

You are the man! Thank you!

 

Best Regards!

Leo

Message 23 of 23

pdelgadillo
Observer
Observer

Hi,

 

Thanks for yor work, i've tried to use the code but i just discovered that if the tag and promt have the same value it doesn't work.

 

I need to modify names of a large number of existing files and can't change promt value one by one.

 

Can you help me??

Thanks!!

0 Likes