Printing and Plotting

Printing and Plotting

Reply
Distinguished Contributor
chrisb
Posts: 1,155
Registered: ‎12-12-2003
Message 1 of 3 (268 Views)

Invalid Style Name

268 Views, 2 Replies
01-27-2006 07:04 AM
I have a plot style that's a conversion from a color dependant one. In it, there's a generic style named "style_2" that I wanted to change into a 50% screening style. Easy enough, but then I after renaming that style to be anything other than "style_2", I get "Invalid style name" upon exiting the editor. In fact, once I've attempted to rename that style back to "style_2", it still stupidly reports "Invalid Style name". Has anybody else run into this? Named plot styles is an area in which I'm still a bit inexperienced, having used only color dependant styles all these years.
New Member
laldm
Posts: 1
Registered: ‎05-19-2012
Message 2 of 3 (221 Views)

Re: Invalid Style Name

05-19-2012 06:23 PM in reply to: chrisb

I realize the post I'm replying to is 6 years old. In fact, while Googling for a solution to this problem, I found a post from 1999 talking about the same issue. Yet, in 2012, in persists. Incredible that Autodesk has not fixed this major bug in its STB implementation at some point in the past 13 years...

 

In any case, a quick (if imperfect) workaround I found to the problem is:

 

1. Use CONVERTCTB to create a new STB from a CTB that you have. This creates an STB with a color mapping table. Change the style names to suit your desire. However, once you do so, the file becomes corrupted and whenever you open it, it comes up with an "invalid style name" error. This doesn't keep the file from being used, but it does give you this error whenever it is opened or a drawing uses it. You also cannot add new styles to the STB. Thus, do not use this as your primary plot style. Only use it as a style for converting drawings from CTB to STB.

 

Then...

2. Use CONVERTCTB to create a new STB from the same CTB as before. This time, go to the "General" tab and click the button that says "Delete R14 Color Mapping Table". It comes up with a dialog box. Press OK. Now rename all your styles to the same names as in first converted STB, above. If you close or open this file, or use it for drawings, it does not become corrupted. However, since it no longer has a color mapping table, you cannot convert drawings with it. Thus, you need both files.

 

You can use the first STB to convert a drawing and then change that drawing's plot style in the plot dialog box to the second STB, so it won't give you the "invalid style name" error when you're in the drawing. The list of styles existing drawings can be mapped to will always be limited to the list in the first file, but you can add styles to the second one, thus allowing more versatility when adding geometry to old drawings or using it for new drawings.

 

-LM

Distinguished Contributor
sakka252
Posts: 173
Registered: ‎03-05-2009
Message 3 of 3 (191 Views)

Re: Invalid Style Name

08-22-2012 07:29 AM in reply to: laldm

Thanks LM.  The problem I encountered is that the renamed styles cannot have spaces (not sure about special characters).  We are trying to switch from our CTB to NCS STB, e.g. "Extra Wide" etc.  Unfortunatly we'll have to make the style name Extra_Wide, for our CTB to STB conversion file.  Then when NCS STB file is applied it won't map to the correct style, i.e. we'll get a (missing) style error.

 

Anybody come across this and have a good solution? 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.