STB plotstyle problem

Discussion in 'AutoCAD' started by lsaapedd, Dec 10, 2004.

  1. lsaapedd

    lsaapedd Guest

    I never use the Normal plotstyle that is the default in STB's. If I could modify it I would. Therefore, can anyone help me create a button that when clicked will change the plotstyle of every layer in a drawing from Normal to Standard? Standard is my standard plotstyle. All help appreciated.

    Jerry
     
    lsaapedd, Dec 10, 2004
    #1
  2. lsaapedd

    Jeff Mishler Guest

    Here ya go....this assumes that the plotstyle standard is defined.

    (defun c:pltstyl ()
    (vlax-for lay (vla-get-layers (vla-get-activedocument
    (vlax-get-acad-object)))
    (vla-put-plotstylename lay "Standard")
    )
    (princ)
    )
     
    Jeff Mishler, Dec 10, 2004
    #2
  3. lsaapedd

    lsaapedd Guest

    A bit late, but, Thank you,Thank you,Thank you.
    You are a scholar and a gentleman.

    Jerry
     
    lsaapedd, Jan 12, 2005
    #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.