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
 Log_Text.lsp for Attribute Tags (LOG_ATT.LSP)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - November 08 2003 :  3:07:24 PM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
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





Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com

Admin
Administrator



652 Posts

Posted - November 17 2003 :  10:14:01 AM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

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

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - November 21 2003 :  12:28:08 PM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
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

Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com
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.31 seconds. Snitz Forums 2000