DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

DXF remove ColorByLayer

Started by Juergen, December 04, 2014, 09:05:01 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Juergen

I step through each entity  in order to remove all ColorByLayer tags in a dxf.
This is snail slow, but it works. Is there a better way to remove all ColorbyLayer tags
in all entities in a selection?


        Dim SelCount As Long
        Dim i As Long
      
      DcSel = DcDoc.Selection

        DcSel.ExplodedSymbolLayer = 4
        DcSel.Explode()
        SelCount = DcSel.Count

        For i = 1 To SelCount

            DcEnt = DcSel.Item(i)
            DcEnt.ColorByLayer = False

        Next i
      
Thanks for any advice,

Juergen      

Juergen

Please see the attachment in this topic http://forum.designcad.com/index.php?topic=6018.0

If I unset 'Use original color attributes' I get the same result with stepping through the entities.
I wonder how to do this with a method.

Kind Regards,

Juergen