The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 AutoCAD
 Lisp & Other Handy Files
 Log_Text.lsp for Attribute Tags (LOG_ATT.LSP)

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
Miksteele Posted - November 08 2003 : 3:07:24 PM
I use the handy "Hurricane Wizard" for the LOG_TEXT.LSP script a lot.

(LOAD "Z:/HURRICANE/LISP/LOG_TEXT.LSP")
;-------------
LOG_TEXT
*SEARCH TEXT*
ALL

Z:/HURRICANE/DATA/OUTPUT.TXT
;-------------

I would like to be able to search for text within a block, and within a particular attribute tag, (attribute name).

For Example:
Hurricane's Title block wizard, (another handy tool), can find a block, find the attribute name, and then modify that line of text.
(LOAD "Z:/HURRICANE/LISP/TB_WIZ1.LSP")
;-------------
TB_WIZ1
BockName
AttributeName
ReplacementText
REGEN
;-------------

Now...just to describe my crazy thoughts...I have merged the prompts...I wish writing a LSP was this easy

((LOAD "Z:/HURRICANE/LISP/LOG_ATT.LSP")
;-------------
LOG_ATT
BockName
AttributeName
*SEARCH TEXT*
Z:/HURRICANE/DATA/OUTPUT.TXT
REGEN
;-------------

Anyone familiar with the "search and log" knows that Z:/HURRICANE/DATA/OUTPUT.TXT will become my queued list of files, via Hurricane's .txt "FILE LIST" feature.

If anyone knows of a LSP or VBA that does this... Please post a reply.

I would implement such a LSP/VBA as a "pre" script. This wonderful script would actually create my massive "FILE LISTS" for me AND!!! Since I would use a unique name in lieu of OUTPUT.TXT, I will immediately know which script needs to be run on the "FILELIST".

Is there anyone else out there that isn't always sure which attribute should be updated in a particular block Do you find yourself opening up drawings and looking at them in order to determine a attribute value

If so, would this be a tool that would help you

Or, have you already found or created this tool and are willing to share




2   L A T E S T    R E P L I E S    (Newest First)
Miksteele Posted - November 21 2003 : 12:28:08 PM
This is real NICE!

I am going to play with it a bit more to see where it takes me.

It actually does almost everything I need. Even though it looks at more than just att tags...hmm... I have some thoughts

If I can successfully tweak, I will post.

I'll be back

Thanks
Admin Posted - November 17 2003 : 10:14:01 AM
Him Miksteele,

Here is a VBA I was working on a while back but I don't recall releasing it.
Basically it is similar to Search and Log except it does it inside Attributed blocks as well.

Also, it sets-up the output file as a LST file in the DATA folder so you can grab the list of files generated for easy editing once they are in the queue (either double-click each or run as batch).

The Prefix to output file prompt creates the filename as one that is easily found. i.e. - if you were scanning your "HOUSE" project for the word "DOOR" then you might use HOUSE as the prefix, and your output filename would be generated as "HOUSE - DOOR.LST". This way you can easily retrieve the file lists as you know by looking at the filename what they already contain.

I know this doesn't satisfy all your requirements, but it could get you started. If you look at the code, you might want to modify it the way you like and post the changes back here as a new program!

Hope this helps you out!

Download Attachment: findandlog.zip
8.59 KB
Here is an example of how to use it... (just copy/paste this template into the script window and save it)
;-------------
-VBALOAD "$HUR_PATH$LISP/findandlog.dvb"
-VBARUN findandlog
;next line is the search text to find and log
SEARCH_TEXT
;next line is prefix to .lst file (like project name)
PROJECT
VBAUNLOAD "$HUR_PATH$LISP/findandlog.dvb"
;-------------

Regards!
Bill

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