TheSwamp

Code Red => .NET => Topic started by: Andrey Bushman on November 20, 2014, 05:35:56 AM

Title: Database objects count
Post by: Andrey Bushman on November 20, 2014, 05:35:56 AM
I wrote the code of exploding a proxy, removing a proxy, and clearing of the unused annotation scales. This code partially based on Alexander Rivilis's code (ARX version). I wrote the test command also. Its output, for example:

Quote
Command: test

DBObjects count before: 5547.
including ProxyEntity items count: 230;
including ProxyObject items count: 4591;

All ProxyEntity items exploded.
New DBObjects count: 3834.
All ProxyObject items removed.

Count of 'HandOverTo' operations for the ProxyEntity items: 0.
Count of 'HandOverTo' operations for the ProxyObject items: 131.

Unused annotation scales count: 24.
Unused annotation scales removed.

DBObjects count after: 4860.

Ellapsed time [Hours:Minutes:Seconds:Milliseconds]: 0:0:0:627

Run the _AUDIT command with the _Y option, please.

But: 5547 - 230 - 4591 + 3834 - 24 = 4536.
4536 != 4860.

Anybody have an idea why I get this difference?

P.S. I can't write my code here, because I get the forum's error:
Quote
The following error or errors occurred while posting this message: The message exceeds the maximum allowed length (20000 characters).
My sources and tested DWG are attached below.
Title: Re: Database objects count
Post by: Andrey Bushman on November 20, 2014, 08:36:59 AM
I have updated my code source files.
Title: Re: Database objects count
Post by: Andrey Bushman on November 21, 2014, 04:58:32 AM
I have updated my code source files again (corrected some errors, added some commands instead of test command). I won't write any more and update files in this topic.
Title: Re: Database objects count
Post by: Keith Brown on November 21, 2014, 07:36:05 AM
Thanks for sharing Andrew.
Title: Re: Database objects count
Post by: Andrey Bushman on December 22, 2014, 12:11:25 PM
I have updated code sources here (http://bushman-andrey.blogspot.ru/2014/12/explodeallproxy-removeallproxy.html#more) (all comments in the code are english). Was fixed some bugs and extented text info in the comments.