Author Topic: Database objects count  (Read 2606 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Database objects count
« 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.
« Last Edit: November 21, 2014, 04:57:52 AM by Andrey Bushman »

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: Database objects count
« Reply #1 on: November 20, 2014, 08:36:59 AM »
I have updated my code source files.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: Database objects count
« Reply #2 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.

Keith Brown

  • Swamp Rat
  • Posts: 601
Re: Database objects count
« Reply #3 on: November 21, 2014, 07:36:05 AM »
Thanks for sharing Andrew.
Keith Brown | AutoCAD MEP Blog | RSS Feed
AutoCAD MEP 2014 / Revit MEP 2014 / EastCoast CAD/CAM addon / Visual Studio 2013

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: Database objects count
« Reply #4 on: December 22, 2014, 12:11:25 PM »
I have updated code sources here (all comments in the code are english). Was fixed some bugs and extented text info in the comments.