jjb299
New Member
USA
8 Posts |
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? |
|