The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 LISP to append filename with attribute text

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Attach a File

Check here to subscribe to this topic.
   

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!"

All the best,
Bill

The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.12 seconds. Snitz Forums 2000