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:
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:
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.