Message 1 of 21
Runtime Error -2147467259
Not applicable
01-20-2003
01:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have attached several XREFs in a drawing. After plotting
I need to detach the XREFs. So far I use the following code:
Dim blockObjekt As AcadBlock
For Each blockObjekt In ThisDrawing.Blocks
if blockObjekt.IsXRef Then
If blockObjekt.name <> "" Then
Debug.Print blockObjekt.name
ThisDrawing.Blocks.Item(blockObjekt.name).Detach
End If
End If
Next blockObjekt
The first XREF is detached, after that I get a Runtime Error -2147467259 and the routine ends.
Does anybody know what happens?
Carmen
I have attached several XREFs in a drawing. After plotting
I need to detach the XREFs. So far I use the following code:
Dim blockObjekt As AcadBlock
For Each blockObjekt In ThisDrawing.Blocks
if blockObjekt.IsXRef Then
If blockObjekt.name <> "" Then
Debug.Print blockObjekt.name
ThisDrawing.Blocks.Item(blockObjekt.name).Detach
End If
End If
Next blockObjekt
The first XREF is detached, after that I get a Runtime Error -2147467259 and the routine ends.
Does anybody know what happens?
Carmen