Results 1 to 4 of 4

Thread: Set Plot Style-Assign Style to Layer

  1. #1
    Active Member
    Join Date
    2004-10
    Location
    Wheat Ridge, Colorado
    Posts
    97
    Login to Give a bone
    0

    Default Set Plot Style-Assign Style to Layer

    Anyone ever write a routine to set an .stb current and then assign styles to individual layers? I have a few hundred drawings that I am trying to update to another companies standards. I have tried the Batch Standards Check, but can't get it to assign styles from an stb to individual layers.

    As always, thanks in advance for any input.

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Set Plot Style-Assign Style to Layer

    I'm pretty sure I've got name-based plot styles applied to layers via layer translation. I'm going to move this thread to the AutoCAD forums since there isn't really a need for LISP.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Set Plot Style-Assign Style to Layer

    While LayTrans should work, I don't think there's an easy way to do this for "hundreds" of drawings. It doesn't have a command line version (at least in my 2008 ).

    Maybe use hofcad's code in post 8 of this thread: http://forums.augi.com/showthread.php?t=113590

    It should be able to send keystrokes to the dialog. So if you can figure out how to use only keyboard (no mouse clicking) to accomplish Layer Translate, then you could write a combination LSP + SCR and run the script on multiple drawings.

  4. #4
    Active Member
    Join Date
    2004-10
    Location
    Wheat Ridge, Colorado
    Posts
    97
    Login to Give a bone
    0

    Default Re: Set Plot Style-Assign Style to Layer

    irneb,

    Thanks for the response. I will give it a try.

    Jeff

Similar Threads

  1. Specify the Plot Style for certain entities in a Named plot style drawing
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2014-10-28, 11:52 AM
  2. Set a layer's plot style and description
    By brendan.j.mallon in forum Dot Net API
    Replies: 2
    Last Post: 2009-11-03, 12:32 AM
  3. Add Plot Style value to layer
    By cadconcepts in forum AutoLISP
    Replies: 7
    Last Post: 2009-06-15, 03:12 PM
  4. Named Plot Style OR Color Depemdent Plot Style
    By Masroor Javid in forum ACA General
    Replies: 2
    Last Post: 2007-09-11, 02:16 PM
  5. Plot Style Field in Layer Dialog
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-02-21, 05:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •