Author Topic: DeepClone VB NET  (Read 4201 times)

0 Members and 1 Guest are viewing this topic.

johnpolob

  • Newt
  • Posts: 29
Re: DeepClone VB NET
« Reply #15 on: November 25, 2015, 05:22:33 PM »
CADBloke, I understand your point of view but each block will be modify later. That's the reason why I need to rename all of them.
My code to do that work good.
The only thing that I want to know now is how to fix the issue which appear when I purge my drawing.
Thank for your reply.

CADbloke

  • Bull Frog
  • Posts: 342
  • Crash Test Dummy
Re: DeepClone VB NET
« Reply #16 on: November 25, 2015, 05:46:27 PM »
ok John ,Understood. :)

I think your problem is at
Quote
When I try to save my drawing, I have the message below on the AutoCAD Text Window : "*Warning* Multiply owned object, handle "193AE""
My guess is that you have one block reference trying to associate itself with multiple block definitions. Inside the loop that creates the new definitions you need to associate each individual reference to its individual definition.

@MexicanCustard's code looks good to me, try stepping through the foreach loop in the debugger so see what it is doing.

johnpolob

  • Newt
  • Posts: 29
Re: DeepClone VB NET
« Reply #17 on: November 25, 2015, 05:59:51 PM »
CADBLOKE,
I have already done that but have a same issue when I purge my drawing.
Could someone test this and let me know  whether is working.
Thanks.
« Last Edit: November 26, 2015, 12:40:20 PM by johnpolob »

johnpolob

  • Newt
  • Posts: 29
Re: DeepClone VB NET
« Reply #18 on: November 26, 2015, 12:38:13 PM »
Hi All,

My issue is fixed by using DeepCLoneObject instead DeepCLone.

Thank you for your advices.