TheSwamp
Code Red => .NET => Topic started 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:
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.
-
I have updated my code source files.
-
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.
-
Thanks for sharing Andrew.
-
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.