Message 1 of 4
Getting all XRef's In VBA

Not applicable
05-21-2001
10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to find out all the XRefs for a document in the following way,
--
Sub getxrefs()
Dim myXRefs As AcadExternalReference
For Each myXRefs In ActiveDocument.ModelSpace
MsgBox myXRefs.Path
Next
UserForm1.Show
End Sub
--
This is fine for ModelSpace XRefs but I would to get all the XRefs for
PaperSpace as well. I thought that it would be a case of changing the third
line to 'For Each myXRefs In ActiveDocument.PaperSpace' but this does not
work.
Any help with PaperSpace XRef's would be most gratefully received.
Barry Bell
--
Sub getxrefs()
Dim myXRefs As AcadExternalReference
For Each myXRefs In ActiveDocument.ModelSpace
MsgBox myXRefs.Path
Next
UserForm1.Show
End Sub
--
This is fine for ModelSpace XRefs but I would to get all the XRefs for
PaperSpace as well. I thought that it would be a case of changing the third
line to 'For Each myXRefs In ActiveDocument.PaperSpace' but this does not
work.
Any help with PaperSpace XRef's would be most gratefully received.
Barry Bell