Global Block Update
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Global Block Update

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
t.landis
Guest





Posted: Fri Apr 08, 2005 7:09 pm    Post subject: Global Block Update Reply with quote

can a block be updated globally?

i.e. if I have an instance of a block with the same name in drawing x and y. I change the block in drawing x, is there a way to update the block with the same name in drawing y to match the new block in drawing x??

Any help?

Thanks

Back to top
T.Willey
Guest





Posted: Fri Apr 08, 2005 7:20 pm    Post subject: Re: Global Block Update Reply with quote

See if this link is what you want. The routine is at the very bottom.

http://discussion.autodesk.com/thread.jspa?threadID=367202

Tim
Back to top
t.landis
Guest





Posted: Fri Apr 08, 2005 7:24 pm    Post subject: Re: Global Block Update Reply with quote

thanks Tim,

I got the zip file from your link. It contains 3 files.. question:
where do I put these files? Do I need to load all three?

Thanks
t

Back to top
T.Willey
Guest





Posted: Fri Apr 08, 2005 7:57 pm    Post subject: Re: Global Block Update Reply with quote

They need to be placed in a folder that is within an Autocad search path. It was written to work with Autocad 2004, if you have another version the ObjectDBX part may not work.

Tim
Back to top
Tim Decker
Guest





Posted: Fri Apr 08, 2005 8:45 pm    Post subject: Re: Global Block Update Reply with quote

When you are in your old drawing, an easy way is to use the Design Center,
and browse to the new drawing that has to updated block already in it,
double clisk on it's block table, and then do a right click on the new block
and select "redefine only".

"T.Willey" <nospam@address.withheld> wrote in message
news:14666381.1112973660866.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
See if this link is what you want. The routine is at the very bottom.

http://discussion.autodesk.com/thread.jspa?threadID=367202

Tim
Back to top
T.Willey
Guest





Posted: Fri Apr 08, 2005 8:53 pm    Post subject: Re: Global Block Update Reply with quote

Good tip. I don't use the design center so....

But for somethings I think it can be easier.

Tim
Back to top
t.landis
Guest





Posted: Fri Apr 08, 2005 8:59 pm    Post subject: Re: Global Block Update Reply with quote

thanks, TIm and TIm for all your help.

I recently switched from Microstation to Autocad, so I'm still kind of a novice here... hence I don't know where the design center is.

T.
Back to top
T.Willey
Guest





Posted: Fri Apr 08, 2005 9:06 pm    Post subject: Re: Global Block Update Reply with quote

Crtl+2 will bring up the design center, or type "adcenter".

Tim
Back to top
t.landis
Guest





Posted: Fri Apr 08, 2005 9:15 pm    Post subject: Re: Global Block Update Reply with quote

ok.. got the to the design center, found the updated block and did the right click on it but it only gives me the option of either Insert Block or copy...

Does that have anything to do with the version of Autocad.. I'm using Autocad 2002.. ?
Back to top
T.Willey
Guest





Posted: Fri Apr 08, 2005 9:22 pm    Post subject: Re: Global Block Update Reply with quote

My routine won't work on your version. To use objectDBX on that version you have to register it, and since I learned about objectDBX only when I had 2004 I never learned how to do it. There are a lot of post on objectDBX though, so you could find out how to do it.

Maybe Tim (the other one in this post) can chime in and tell you how to use the design center.

Sorry I couldn't be more help.
Tim
Back to top
Kent Cooper, AIA
Guest





Posted: Fri Apr 08, 2005 10:45 pm    Post subject: Re: Global Block Update Reply with quote

If you have lots of them to update the same block in, you might Wblock that
block out to a drawing named the same thing, then in the other drawings, do
the

-INSERT <blockname>=

thing (whether by script, menu item, defun'd command, or whatever). My
tablet item from back before Xref existed (that's why it says "DWG"):

[RedefIns]*^C^C^P(setq rgnmd (getvar "REGENMODE")) +
(setq redef (getstring "NAME OF INSERTED DWG TO REDEFINE: ")) \+
REGENAUTO OFF -INSERT (strcat redef "=") ^C^PSETVAR REGENMODE !rgnmd

Whether that can be automated for a batch of drawings at once, I can't help
you with.
--
Kent Cooper

"Tim Decker" wrote...
Quote:
When you are in your old drawing, an easy way is to use the Design Center,
and browse to the new drawing that has to updated block already in it,
double clisk on it's block table, and then do a right click on the new
block and select "redefine only".
Back to top
Tim Decker
Guest





Posted: Fri Apr 08, 2005 10:51 pm    Post subject: Re: Global Block Update Reply with quote

It may be 2002. The old way (which works just as good).

First step is to go into the drawing with the new block, use the WBLOCK
command, and for the source select "block" and from the pulldown, select the
new block, then at the bottom, select a folder to place this new block in,
you can either type or hit the "..." to browse. This will write that block
out to disk as a .dwg file.
Second step is to go to the drawing with the old block in it, use the
INSERT command, and browse to the location where you wrote the new block to
and select it and hit open. When it returns to the insert dialog, just
press "ok". It will bring up a message asking if you want to redefine the
block in your current drawing with the one from the file, when you say yes,
you are done, you do not need to actually place the block if you don't want
to (if you don't, just hit escape). The new definition should now be loaded
into your drawing, and it should regen to show the changes.

"t.landis" <nospam@address.withheld> wrote in message
news:31792555.1112980565568.JavaMail.jive@jiveforum2.autodesk.com...
Quote:
ok.. got the to the design center, found the updated block and did the
right click on it but it only gives me the option of either Insert Block
or copy...

Does that have anything to do with the version of Autocad.. I'm using
Autocad 2002.. ?
Back to top
t.landis
Guest





Posted: Fri Apr 08, 2005 11:09 pm    Post subject: Re: Global Block Update Reply with quote

great, thank you all.

the wblock version worked.

T.
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB