eitreb Posted January 29, 2009 Posted January 29, 2009 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 Quote
ReMark Posted January 29, 2009 Posted January 29, 2009 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. Quote
eitreb Posted January 29, 2009 Author Posted January 29, 2009 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. Quote
ReMark Posted January 29, 2009 Posted January 29, 2009 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. Quote
Recommended Posts
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.