Jump to content

Recommended Posts

Posted

Hi,

I'm trying to write a macro so that I can set a layer then set the dimscale then dimstyle and the finally a linear dim command.

However the dimtyle i require to use has spaces in which in cad are presumed as the enter key. I hope someone can help me with this. I show below the dimstyle name and macro command i have written so far. I've also tried putting it in " " marks but that doesn't work.

 

2-5 TEXT - SCALE 5(mm)

 

^C^C-LAYER;SET;S060_D_X_DIMS;;-DIMSTYLE;RESTORE;2-5 TEXT - SCALE 5(mm);DIMSCALE;5;DIMLINEAR;\\\

 

Cheers

 

Paul

Posted

Can't you rename the DimStyle by substituting the underscore character for the spaces? Wouldn't that be easier?

 

I believe the RENAME command can be used to rename a DimStyle.

Posted

That would be the easiest answer, and is what I would normally do, however in this circumstance I work for a global company which have these set as a standard and i'm not allowed to edit them. Hence my problem.

Posted

It's been a while since I've written a macro but I seem to recall you could use a tilde ( ~ ) in lieu of a space. Try it and let me know if it works.

 

OK...now I'm not so sure.

 

I also read this in response to a similar question:

 

"You CAN use a blank space in your macro. The trick is to enclose the path and file name in quotes." Courtesy of pmedina at the AUGI Discussion Forums.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...