Thank you very much,
I did as you suggested and created the following
code:
Private objADT As
AcadApplication
Private objDoc As AcadDocument
Private
objBlock As Object
Private objBlocks As AcadBlocks
Set objDoc =
objADT.ActiveDocument
Set objBlocks = objDoc.Blocks
For Each objBlock In
objBlocks
If objBlock.IsXRef = True
Then
objBlock.Reload
End
If
Next
Upon completion, it crashes with a Automation
Error. If I insert
On Error Resume
Next
prior to the For..Each loop it works ok.
However sometimes it does not work. It seems to skip Xref's that are
inserted in paperspace the first time, but then later it will work on them
also. I am so comfused. Any suggestions?
> Yes - For each
XREF in your drawing there is an AcadBlock
> object in the Blocks
collection. The AcadBlock object has
> methods Unload() and Reload() that
will unload and reload
> an external reference.
>
>
>
"Mark Palacios" <
size=2>mark@palacios> wrote in
message
>
face=Arial size=2>news:f09ff39.-1@WebX.maYIadrTaRb
size=2>...
> > Hello,
> >
> > Is it possible to
reload xref's using vb?
> >
> > How?
> >
>
>
> >
> >
>
>