Message 1 of 2
change the layer from a block

Not applicable
12-28-2006
09:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
can I change with my program the layer from a block (objBlock) without a
separate
program with the AcadBlockReference?
Thanks
Hartmut Callies
Dim objBlock As AcadBlock
Dim objEntity As AcadEntity
Dim i as Integer
For i = 0 To ThisDrawing.Blocks.Count - 1
Set objBlock = ThisDrawing.Blocks(i)
'<===== objBlock.Item(objBlock.Name).Layer = "DIM" 'how can I
change the Layer from the block?
For Each objEntity In objBlock
'......
Next
Next i
can I change with my program the layer from a block (objBlock) without a
separate
program with the AcadBlockReference?
Thanks
Hartmut Callies
Dim objBlock As AcadBlock
Dim objEntity As AcadEntity
Dim i as Integer
For i = 0 To ThisDrawing.Blocks.Count - 1
Set objBlock = ThisDrawing.Blocks(i)
'<===== objBlock.Item(objBlock.Name).Layer = "DIM" 'how can I
change the Layer from the block?
For Each objEntity In objBlock
'......
Next
Next i