Get layer lineweight value

Discussion in 'AutoCAD' started by Dave Alexander, May 31, 2004.

  1. I am creating new layers based on an existing layer and I want to get the
    lineweight setting for the existing layer so I can apply it to the new
    layer.
    Using

    (cdr (assoc 370 (tblsearch "layer" (getvar "clayer"))))

    returns "nil" even though the current layer has specific lineweight setting.

    Any help would be appreciated.

    Thanks
    Dave Alexander
    Keen Engineering Co. Ltd.
    www.keen.ca
     
    Dave Alexander, May 31, 2004
    #1
  2. Dave Alexander

    zeha Guest

    try

    (cdr (assoc 370 (entget (tblobjname "layer" (getvar "clayer")))))
     
    zeha, May 31, 2004
    #2
  3. Thanks.

    I appreciate it.

    Dave Alexander
    Keen Engineering Co. Ltd.
    www.keen.ca
     
    Dave Alexander, May 31, 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.