Can't set plotstyle for a layer

Discussion in 'AutoCAD' started by David Urban, May 24, 2004.

  1. David Urban

    David Urban Guest

    I want to write a program that will set a plotstyle name to a newly
    created layer or a layer that exists. I have the routine that will
    automatically set the color and line type but am unable to get it to set
    the plotstyle. It will if I have already set another layer to the same
    plotstyle name but if I haven't set it and it exist in the stb file it
    will not set it and error on the line.

    I am not looking to add to the stb file just use what is in the file. I
    saw the workaround by Mike Tuersley but that is not quite what I am
    looking for but when I access the dictionary there are items in the
    dictionary but no variables so I am at a loss of what to do.

    I am using A2K4. I wish there was alittle more help in autocad about
    style based plotting.

    David Urban
     
    David Urban, May 24, 2004
    #1
  2. David Urban

    Jeff Mishler Guest

    Hi David,

    You may want to check out the thread "Cranky setting of layer
    PlotStyleName property - any solutions?" posted back in Sept. of '01. I
    think that your answer(s) may lie there.....

    Jeff
     
    Jeff Mishler, May 24, 2004
    #2
  3. David Urban

    David Urban Guest

    I saw that yesterday but didn't think it applied but now that I have
    slept on it I think it might. The way I look at it is the program that
    Joe Funk proposed was to create a fake like and assign a style to it to
    force it into the dictionary then you can assign that style to a layer.
    This is a difficult way of doing it. I will play with this later
    but couldn't you just add to the dictionary or reference the .stb file
    to directly insert.

    I am surprised Autodesk has not addressed this in the past three years
    or even made it better.

    David Urban
     
    David Urban, May 24, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.