Message 1 of 11
modifying xrefs path and filename
Not applicable
12-17-2001
04:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to modify the xref block filename and path. I have written a
routine that will grab all blocks that are xrefs but I cannot figure out how
to incorporate the externalreference object. Every example I find loads the
xref with the code. I am trying to modify the xref path and file name of an
xref that has already been loaded. Any suggestions.
Dim xref_file As AcadExternalReference
For x = 0 To Me.Blocks.Count - 1
If Me.Blocks(x).IsXRef Then
'Set xref_file = Me.Blocks.Item(Me.Blocks(x).Name).Reload
'The line above is what I am having trouble with.
'I cannot figure out how to attach the object to the xref_file
'variable.
End If
Next x
routine that will grab all blocks that are xrefs but I cannot figure out how
to incorporate the externalreference object. Every example I find loads the
xref with the code. I am trying to modify the xref path and file name of an
xref that has already been loaded. Any suggestions.
Dim xref_file As AcadExternalReference
For x = 0 To Me.Blocks.Count - 1
If Me.Blocks(x).IsXRef Then
'Set xref_file = Me.Blocks.Item(Me.Blocks(x).Name).Reload
'The line above is what I am having trouble with.
'I cannot figure out how to attach the object to the xref_file
'variable.
End If
Next x