The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 Renaming dimstyle problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

milleniummike
New Member



USA
10 Posts

Posted - July 20 2006 :  5:10:17 PM  Show Profile  Visit milleniummike's Homepage  Reply with Quote
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

n/a
deleted

112 Posts

Posted - July 20 2006 :  5:42:41 PM  Show Profile  Reply with Quote
Mike,
What is the new name? I think I can send you a lisp to load and run from Hurricane, avoiding the space problem.

Steve Bubendorf
Go to Top of Page

milleniummike
New Member



USA
10 Posts

Posted - July 20 2006 :  5:47:55 PM  Show Profile  Visit milleniummike's Homepage  Reply with Quote
KCMPC-16 is the new name. I would be most humbly appreciative.
Go to Top of Page

n/a
deleted

112 Posts

Posted - July 20 2006 :  5:52:03 PM  Show Profile  Reply with Quote
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

Steve Bubendorf
Go to Top of Page

milleniummike
New Member



USA
10 Posts

Posted - July 20 2006 :  5:55:45 PM  Show Profile  Visit milleniummike's Homepage  Reply with Quote
Thanks Steve,
I will give it a try tomorrow. Gotta run tonight.
Go to Top of Page

n/a
deleted

112 Posts

Posted - July 20 2006 :  5:56:37 PM  Show Profile  Reply with Quote
OOps. Should have refreshed the web page.

I revised the lisp with the name you requested.

Download Attachment: renamekcm.zip
551 Bytes

Steve Bubendorf
Go to Top of Page

Admin
Administrator



652 Posts

Posted - July 20 2006 :  6:42:27 PM  Show Profile  Visit Admin's Homepage  Reply with Quote
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

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

milleniummike
New Member



USA
10 Posts

Posted - July 21 2006 :  11:33:36 AM  Show Profile  Visit milleniummike's Homepage  Reply with Quote
Thank you, I will try that as well.
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.06 seconds. Snitz Forums 2000