Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
jjb299
Posted - October 20 2014 : 5:26:57 PM 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?
1 L A T E S T R E P L I E S (Newest First)
Admin
Posted - October 21 2014 : 4:32:10 PM Thank you Justin for your contribution! I hope that anyone that uses your lisp routine is kind enough to drop you a "Thank you!"