How can i reload xref's from all the documents that i have opened?

7 views
Skip to first unread message

MRL

unread,
Jun 28, 2004, 12:41:28 PM6/28/04
to
Hello,

Here is my code, but it's not working properly.
It's only reloading the xrefs in my active document.

How can i reload all my xref's from all the documents that i have opened?

Martin

(vlax-for @each (vla-get-Documents (vlax-get-acad-object))
(vlax-for @block (vla-get-Blocks @each)
(if (= :vlax-true (vla-get-IsXRef @block))
(vla-Reload @block)
)
)
)

Joe Burke

unread,
Jun 29, 2004, 8:59:42 AM6/29/04
to
Martin,

I'm not sure about this, but I suspect the reload method only applies to the active
document. Others here know more about this than I do.

And may I suggest, you shouldn't do (vla-get-Documents... within a vlax-for
statement. The Documents collection is static when the program runs.

So rather:
(setq docs (vla-get-Documents (vlax-get-acad-object)))
... do stuff with docs ...

Joe Burke

"MRL" <mail....@rosendal-038.tmfweb.nl> wrote in message
news:40e04a30$1_2@newsprd01...

MRL

unread,
Jun 29, 2004, 12:27:59 PM6/29/04
to Joe Burke
Hi Joe,

Has it something to do with vl-propagate ?

Martin


Joe Burke schreef:

Joe Burke

unread,
Jun 30, 2004, 8:16:07 AM6/30/04
to
Martin,

Sorry, I don't know what the problem is. I tried the code you posted. The logic seems
sound, regardless of my comment. As you said, it errors when it tries to process open
files which are not the active file. And it appears to do what it should with the
active file.

I don't think vl-propagate is an issue since your code doesn't create symbols other
than temporary vlax-for items. vl-load-all might be an issue if each doc in the
documents collection must be made active for vla-Reload to work as expected. But
somehow that doesn't seem right to me.

We need some guru help here. I would like to know what the answer or problem is, as
much as you would.

Regards
Joe Burke

bitinh...@gmail.com

unread,
Jun 24, 2014, 12:41:41 AM6/24/14
to
Buy fake/real passports,driving license,id
cards,counterfeit
We are the best producer of HIGH QUALITY
real documents. With over a billion of our
documents circulating around the world. We
offer only original high-quality passports,
driver's licenses, ID cards, birth certificates,
novelty driver license,stamps, visas,
universities diploma and other products for all
countries like:USA, Australia, Belgium, Brazil,
Canada, Italia, Finland, France, Germany,
Israel, Mexico, Netherlands, South Africa,
Spain, United Kingdom. This list is not full. To
get the additional information and place the
order just call or contact us via email mobile.
Contact us at (bitinhio2012 @ gmail .
com) or call (+23777948197)
PURCHASE NOVELTY
PASSPORTS, DRIVERS LICENSES, ID CARDS,
BIRTH CERTS & UNIVERSITIES DIPLOMA FOR
THE FOLLOWING COUNTRIES: Contact us at
(bitinhio2012 @ gmail . com) or call
(++23777948197 )
Reply all
Reply to author
Forward
0 new messages