Has anyone come up with a LISP to copy attribute text in a block to another attribute in the same block? What I'm looking for goes something like this: 1. Block name? 2. FROM attribute tag? (text to be copied) 3. TO attribute tag? (insert copied text) Maybe it could be called COPYCAT.lsp? (get it? copy ATT?)
That's all. Any code geniuses (geniui? lol) out there who can conquer this? Thanks guys. Love the program by the way. -Justin
Thanks for the lead. That link doesn't do exactly what I want. However, with more Google Engineering, I found a LISP someone posted on a forum. I've attached it to this post. This LISP works great, but it relies on screen clicks. I want to use this in a script, so I need command line prompts. Like in my first post, I want the command line prompts to go: 1. Block name 2. FROM attribute tag 3. TO attribute tag
I'm working on trying to reverse engineer this to make that work for command lines. Let me know if someone beats me to it.
Take a look inside the Hurricane/Lisp folder. All the lisps in there that are "command line only" types. No screen clicks. So you can use portions of those to modify your lisp.
I'm thinking you could even get most of what you need from the TB_WIZ1.LSP in that directory.
Thanks admin. I found the tbwiz file very useful. I've managed to get a file together that should be working, but isn't. I've attached a copy of my code in TXT form. Where am I going wrong? Thanks.
Got it! Attached are 2 files. COPYCAT will search for the first block it comes to that matches and copy one attribute to another. COPYCAT2 will find all blocks that match the name and copy the attribute to another. The first one is useful for something like a titleblock that should only be in a drawing once. The second one is useful for blocks that span across model and layouts.