The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 AutoCAD
 Lisp & Other Handy Files
 LISP to append filename with attribute text
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jjb299
New Member



USA
8 Posts

Posted - October 20 2014 :  5:26:57 PM  Show Profile  Reply with Quote
I want to try to write a LISP to rename a file and use the LISP in Hurricane. After thinking about all the different possibilities, I'm going to just keep it simple and do what I want it to, which is append an attribute to the existing filename. And I want to run it from the command line. What I'm thinking is this:
Let's call this "appendatt.lsp".
1. Enter block name (i.e. "tb1")
2. Enter attribute name (i.e. "description2")
3. Enter Delimiter: (i.e. " - ")

So, the resulting file would be: "current-filename"+"delimiter"+"attribute text".dwg
(i.e. CV001 - SITE GRADING PLAN.DWG)

I know ACAD won't like trying to rename an open drawing, but I'm OK with saving a copy of the file in the CURRENT directory of the existing file.

Can anyone outline a psuedocode for me? Maybe throw in some pertinent code commands?

Admin
Administrator



651 Posts

Posted - October 21 2014 :  4:32:10 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
Thank you Justin for your contribution! I hope that anyone that uses your lisp routine is kind enough to drop you a "Thank you!"

All the best,
Bill

Hurricane for AutoCAD
http://www.74mph.com
FAQ at
http://www.74mph.com/faq/faq.html
Tutorials at
http://www.74mph.com/tutorials.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.27 seconds. Snitz Forums 2000