TheSwamp

Code Red => VB(A) => Topic started by: Bryco on August 14, 2006, 11:15:48 PM

Title: Update block with CopyObjects
Post by: Bryco on August 14, 2006, 11:15:48 PM
We draw a lot of blocks and when fastpacing we will draw a plan as a block in a drawing and have the same block in an xref that is inserted in the same drawing. I'm trying to make a sub that allows the user to pick a blockref, then pick the xref that includes the blockref and update the xref. CopyObjects does a great job of adding a new block to the xref drawing but doesn't seem to update an existing block.
Perhaps someone knows how to do this as the help on cloning etc is sketchy.
I'll try deleting objects in the xref block and then replacing them, but if there is another way I would prefer it
Title: Re: Update block with CopyObjects
Post by: Marco Jacinto on August 17, 2006, 06:44:40 PM
The InsertBlock Method acts like the insert command, when you insert a block that is already in the drawing it will be updated.
Title: Re: Update block with CopyObjects
Post by: Bryco on August 18, 2006, 01:14:07 AM
Thanks Marco, I'll try it out. And welcome to the swamp.