Change Layer color to True color

Discussion in 'AutoCAD' started by antoniomiranda, Jul 15, 2004.

  1. Hello,

    I've many layers with many entities in each one.
    Each entitie has one color defined on Layer Propreties Manager and appears in Color PullDown "ByLayer", can i change this "ByLayer" to the Color Number defined in Layer Propreties Manager?

    Best regards,
    António Miranda.
     
    antoniomiranda, Jul 15, 2004
    #1
  2. Like this?


    Sub LayerColorsToEntityColors()
    Dim curLayout As AcadLayout
    Dim curObj As AcadEntity

    Set curLayout = ThisDrawing.ActiveLayout

    For Each curObj In curLayout.Block
    if curobj.color = acbylayer then _
    curObj.Color = ThisDrawing.Layers(curObj.Layer).Color
    Next 'curObj

    End Sub

    James
     
    James Belshan, Jul 22, 2004
    #2
  3. Hi,

    Just curious. Why would you want to do this ?

    Surely the secret of successful AutoCAD drafting is to set all object
    characteristics to BYLAYER.


    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au

    in Color PullDown "ByLayer", can i change this "ByLayer" to the Color Number
    defined in Layer Propreties Manager?
     
    Laurie Comerford, Jul 22, 2004
    #3
  4. antoniomiranda

    MP Guest

    maybe the secret is too well kept?
    :)
     
    MP, Jul 22, 2004
    #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.