TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ziele_o2k on June 19, 2017, 04:47:40 PM

Title: ZombieKiller by gile in lisp
Post by: ziele_o2k on June 19, 2017, 04:47:40 PM
I wrote some lisp function to purge drawings. My function is based on Script Writer (http://www.lee-mac.com/scriptwriter.html) by Lee Mac and RadicalPurge (https://apps.autodesk.com/ACD/pl/Detail/Index?id=5474554872375064722&appLang=en&os=Win32_64) with LISP function: gc-Purge. I would like also to use ZombieKiller (https://apps.autodesk.com/ACD/pl/Detail/Index?id=1498235021060360128&appLang=fr&os=Win32_64), but I don't know if this is possible.

Can anyone help me ?
I tried with:
Code: [Select]
(command "KILLZOMBIES")but I have to confirm killing zombies in every drawing opened with Script Writer and I would like to avoid that.
Title: Re: ZombieKiller by gile in lisp
Post by: gile on June 20, 2017, 01:53:50 PM
Hi,

The KILLZOMBIES command is not scriptable. I prefered to impose a dialog box so that the user can see clearly and can choose the objects that it will delete.
Blankly deleting all proxy objects from a drawing did not seem to me to be desirable because it could have unpredictable consequences due to the behavior of possibly unknown custom objects.
Title: Re: ZombieKiller by gile in lisp
Post by: ziele_o2k on June 21, 2017, 01:31:05 AM
In my work I get a lot of drawings with proxy objects and always I'm deleting them all, there was never any problem with that.
Thank you for answer anyway !
Title: Re: ZombieKiller by gile in lisp
Post by: Crank on June 22, 2017, 04:46:21 PM
Perhaps this (http://www.maestrogroup.com.ua/support/ExplodeProxy.zip) is what you want.
Title: Re: ZombieKiller by gile in lisp
Post by: ziele_o2k on June 23, 2017, 04:45:04 AM
Perhaps this (http://www.maestrogroup.com.ua/support/ExplodeProxy.zip) is what you want.
What is this and wher is this from ?
Title: Re: ZombieKiller by gile in lisp
Post by: Crank on June 23, 2017, 12:12:49 PM
It's from Alexander Rivilis who has written some great tools (http://www.maestrogroup.com.ua/support/).

Here is a translation (by Google) of the readme file attached to the archive:
Quote
================================================== ==========================
This license permits, free of charge, to persons who have received a copy of the
software and associated documentation files (the
"Software"), to use the Software
Software without restriction, including the unlimited right
to use, copy, modify, merge, publish,
distribute, sublicense, and / or sell copies of the
Security, and to permit persons to whom the
Software is subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THIS SOFTWARE IS PROVIDED <AS IS> WITHOUT ANY KIND
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM FOR DAMAGE
DAMAGES OR OTHER LIABILITY IN AN ACTION OF CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OF THE SOFTWARE OR OTHER
DEALINGS IN THE SOFTWARE.
================================================== ==========================

Command EXPLODEALLPROXY:
Explodes all proxy-primitives (which it can explode, ie, the programmer at
their creation does not have "unexplode"i flag) all over the drawing.
Command REMOVEALLPROXY:
Removes all proxy-objects and primitives (including
those having undeletable flag).
It is convenient to perform REMOVEALLPROXY after EXPLODEALLPROXY - then it will delete everything
it was not possible to explode and remove non-graphical objects.

...

After you once load the appropriate arx-file in AutoCAD
(Using either _APPLOAD or _ARX), so that when the next sessions
AutoCAD this arx-file loaded himself.
In the version of AutoCAD 2008 and above allows the command RemoveAllProxy
remove unused scale (AcDbScale) from the list of scales.

ExplodeProxy2000.arx - for AutoCAD 2000 ... 2002
ExplodeProxy2006.arx - for AutoCAD 2004 ... 2006
ExplodeProxy2007.arx - for AutoCAD 2007 ... 2008
ExplodeProxy2009x32.arx - AutoCAD 2009 (x86 - 32-bit)
ExplodeProxy2009x64.arx - AutoCAD 2009 (x64 - x64)
ExplodeProxy2010x32.arx - for AutoCAD 2010 ... 2012 (x86 - 32-bit)
ExplodeProxy2010x64.arx - for AutoCAD 2010 ... 2012 (x64 - x64)
ExplodeProxy2013x32.arx - for AutoCAD 2013 ... 201X (x86 - 32-bit)
ExplodeProxy2013x64.arx - for AutoCAD 2013 ... 201X (x64 - x64)

================================================== ======================
PS: If you like the program I created and you will have
I desire to thank or to stimulate new writing
versions of this program or any other program, then you can
list some of the funds in the following payment systems:

Yandex-money: 41001772124024
WebMoney:
 WMZ: Z259455421266
 WMR: R344991763441
 WMU: U219754899110
 WME: E420171190217
It will be a good incentive to continue my work.
================================================== ======================
e-mail: rivilis@mail.ru
e-mail: rivilis@yandex.ru
ICQ: 47520829
Skype: rivilis
GTalk: Alexander.Rivilis @ gmail.com
MSN: rivilis@hotmail.com
tel.: +380 (50) 332-21-26