Using VBA to separate drawing to layers
Posted: Thu Mar 11, 2004 8:00 am
I need to take a dxf file (actually about 30) with 10 to 20 layers and make one file per layer. Any thoughts on how to use VBA in Intellicad to do this?
I'm new to Intellicad (but have some Intergraph, DXF, and VB experience). I see from previously posted examples in the VBA forum how to use VBA to:
- open a drawing,
- loop thru the layer definitions and
- save the doument to a file,
but nothing on how to loop thru the list of entities and copy them to a new drawing if they are on a certain layer. Should I use the block collection? (are all entities in a block? or are block optional?)
Any help would be appreciated.
Brent Fraser
I'm new to Intellicad (but have some Intergraph, DXF, and VB experience). I see from previously posted examples in the VBA forum how to use VBA to:
- open a drawing,
- loop thru the layer definitions and
- save the doument to a file,
but nothing on how to loop thru the list of entities and copy them to a new drawing if they are on a certain layer. Should I use the block collection? (are all entities in a block? or are block optional?)
Any help would be appreciated.
Brent Fraser