The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Hurricane for AutoCAD
 General Discussion
 Renaming dimstyle problem

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
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.

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