how to differ two lines in color

Discussion in 'AutoCAD' started by youngman, Mar 21, 2005.

  1. youngman

    youngman Guest

    hi,

    i want to differ two lines in color,

    but when the settings are all bylayer, the color values of the two lines are
    all 256,

    (in fact their colors are different.)

    what should i do.

    thanks
     
    youngman, Mar 21, 2005
    #1
  2. youngman

    Joe Sutphin Guest

    That would imply there layers are different? Is this the case?

    If you'll want to change the color of the Layer object and not the entity.

    Joe
     
    Joe Sutphin, Mar 21, 2005
    #2
  3. youngman

    oops Guest

    if the color is bylayer, you have to look at the color of the layer

    if yourline.Color = acByLayer then
    msgbox ThisDrawing.Layers(yourline.Layer).Color
    else
    msgbox yourline.Color
    end if
     
    oops, Mar 21, 2005
    #3
  4. youngman

    youngman Guest

    Thanks for your advice.
    this helped me.

    thank
     
    youngman, Mar 22, 2005
    #4
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.