T O P I C R E V I E W |
milleniummike |
Posted - July 20 2006 : 5:10:17 PM I have a dimstyle with a space in the name. (KCM PC). I want to rename it to a new style name but the space acts as a return and stops my batch from running. Any ideas on a work around? I have about 400 dwgs to revamp and I dread doing it all by hand one at a time.
milleniummike |
7 L A T E S T R E P L I E S (Newest First) |
milleniummike |
Posted - July 21 2006 : 11:33:36 AM Thank you, I will try that as well. |
Admin |
Posted - July 20 2006 : 6:42:27 PM Hi,
I thought I'd jump in here and mention that SOMETIMES, depending on the command being used, when specifying the piece of text that has the space in it, (at the command prompt), you can encapsulate the string with the double-quote character, and AutoCAD will wait to see the second double-quote character before it thinks you are done entering text.
In other words, if you are trying to put KCM PC as a response to a prompt in your script, enter "KCM PC" (with quotes this time) instead.
This often works with filenames that have spaces in them... i.e. when specifying a file and path.
Instead of $filepath$$filename$.dwg in your Hurricane script, use "$filepath$$filename$.dwg" (with quotes) instead.
This is a hit-and-miss scenario, as AutoCAD is erratic on which commands use this functionality. Just another tip I thought I'd throw out there, in case it might help.
Regards, Bill |
n/a |
Posted - July 20 2006 : 5:56:37 PM OOps. Should have refreshed the web page.
I revised the lisp with the name you requested.
Download Attachment: renamekcm.zip 551 Bytes |
milleniummike |
Posted - July 20 2006 : 5:55:45 PM Thanks Steve, I will give it a try tomorrow. Gotta run tonight.
|
n/a |
Posted - July 20 2006 : 5:52:03 PM Mike, Gotta run, but give this a try. Rename the attached file to renamekcm.lsp instead of renamekcm.zip. Put it in a folder in your AutoCAD support path.
I used a new style name of "kcm_pc". If that is not what you want, use a text editor to change it in the file.
Create the following Hurricane Script: (load "renamekcm") (renamekcm)
I didn't take time to test it, but I think it should work. I'm headed for home. I'll maybe have a chance to test it there, and will recheck this forum from there, as well, otherwise I'll take a look in the morning.
Download Attachment: renamekcm.zip 472 Bytes |
milleniummike |
Posted - July 20 2006 : 5:47:55 PM KCMPC-16 is the new name. I would be most humbly appreciative.
|
n/a |
Posted - July 20 2006 : 5:42:41 PM Mike, What is the new name? I think I can send you a lisp to load and run from Hurricane, avoiding the space problem. |