Dimension Style Names

Previous versions of MS allowed for a blank space in the Dimension Style names i.e. 60_FOOT  SCALE. However it seems in our current setup using MS Version 08.09.04.51 it no longer allows this space. Our identically named Text Styles still allow for a space and work properly. We use macros that load a dgnlib file which includes our named styles and set them active according to the working scales etc.  Is this by design and/or is there a fix for this?

 Mike

  •  

    Hi Mike,

                    Nothing has changed with the dimension or text style naming convention. The naming convention follows the Microsoft file naming convention so any valid file name should be good for a style. 

                    I tried the style name in the message for both text and dimension styles in the 8.9.4.98 build and didn't have a problem. Not sure if the system could have blocked the naming of the style or not. You might try naming a file on your system with spaces.

    Hope this helps,

    Bill


    This is a test

  • Bill,

    Thanks for looking into this for us.

    I can open a clean file with no local dimstyles defined and create two new styles, one with a space in the name and one without. When I execute a keyin, "dimstyle active style_nospace" it sets the style active as expected. However if I try anything with a space in the name it it simply does not set it active. No errors or messages, it just does not make the style active. I can rename these styles adding or removing the space and get the same results so its nothing with the style itself.

    I'll try this on some other machines and see what happens. Hopefully the results are consistent.

    Any suggestions?

  • Bill,

    Forgot to mention that I checked and indeed the system allows for spaces in the file names.

     Mike

  • The keyin may require that you place quotes around the name if there are spaces i.e. dimstyle active "style space"
  • Todd,

    Interestingly enough your solution works fine for setting the Dimension Style however if I try and send the keyin to set the Text Style and use double quotes it does not recognize the style name as the dimstyle was doing. Seems to be that the command interpreter has changed or something. Not sure and have no way to test this.

    I've went into the macro and set up a second variable and string concatenation to set the dimension style and all is well.

    We lost another option in the XM upgrade where we using a negative value for the Overline option in a text style that resulted in a doulble underline of text. It worked perfectly for placing double lines of differing weights beneath bold text labels in your plans. As you edit text both lines automatically adjusted and did not require you to manipulate the line element's lengths separately. Unfortunately the XM upgrade does not allow a negative value in the overline field as was the case in V8 so we can no longer use this great feature!   Whaaaahhhhh........

    Thanks for your help

    Mike

  • I noticed that the quotes don't work for the Text Style keyin as we have text styles with spaces in the names and it took an ST for me to get the keyin to work correctly for those.  Oddly that is no longer the case in V8i - you will have to use quotes around the text style name in V8i.  I currently have an ST in for that one because now all my text style keyins that I set in XM no longer work in V8i.   Uggggh