Search code examples
vbaautocadcad

Collect Entities in autoCAD drawing and change the colors


The code i tried line collection under entity collectionI want to change the colors / layers of different linetypes (continuous / dashed/ center) in autocad drawing using VBA. I tried to collect all the entities and filter them! but no success!


Solution

  • Gotcha! Instead of collecting linetypes i had to use Iacadline2 and then filter based on names. Code works fine now.