Author Topic: Update block with CopyObjects  (Read 1899 times)

0 Members and 1 Guest are viewing this topic.

Bryco

  • Water Moccasin
  • Posts: 1883
Update block with CopyObjects
« 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

Marco Jacinto

  • Newt
  • Posts: 47
Re: Update block with CopyObjects
« Reply #1 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.

Bryco

  • Water Moccasin
  • Posts: 1883
Re: Update block with CopyObjects
« Reply #2 on: August 18, 2006, 01:14:07 AM »
Thanks Marco, I'll try it out. And welcome to the swamp.