Author Topic: Use -purge without command-line output?  (Read 2303 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Swamp Rat
  • Posts: 650
Use -purge without command-line output?
« on: December 13, 2014, 06:45:37 AM »
Is it possible to use "-purge" without command-line output? Cmdecho and Expert have no influence ...
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

danallen

  • Guest
Re: Use -purge without command-line output?
« Reply #1 on: December 13, 2014, 10:24:05 AM »
You could try NOMUTT (google it), doesn't work in Bricscad, but might in Acad.

Peter2

  • Swamp Rat
  • Posts: 650
Re: Use -purge without command-line output?
« Reply #2 on: December 13, 2014, 12:14:20 PM »
Thanks Dan

I tried it in Acad 2014 - it suppress "Command:" and maybe more, but not the messages from purge, Lisp, princ, ....

Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Use -purge without command-line output?
« Reply #3 on: December 13, 2014, 03:28:53 PM »
Command: CMDECHO

Enter new value for CMDECHO <1>: 0

Command: -PURGE

Enter type of unused objects to purge [Blocks/DEtailviewstyles/Dimstyles/Groups/LAyers/LTypes/MAterials/MUltileaderstyles/Plotstyles/SHapes/textSTyles/Mlinestyles/SEctionviewstyles/Tablestyles/Visualstyles/Regapps/Zero-length geometry/Empty text objects/All]: *Cancel*

Command: NOMUTT

Enter new value for NOMUTT <0>: 1
-PURGE
all



appears to work....tested in empty file
Be your Best


Michael Farrell
http://primeservicesglobal.com/

BlackBox

  • King Gator
  • Posts: 3770
Re: Use -purge without command-line output?
« Reply #4 on: December 14, 2014, 10:18:19 AM »
FWIW -

You might find my free AutoPurgeReg App useful.

For 2015+, my next app update will convert the bboxAutoPurgeRegMode Command to a Profile-specific, custom system variable, which Autoloader now supports via PackageContents.xml file:

http://knowledge.autodesk.com/support/autocad/downloads/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-Customization/files/GUID-3C25E517-8660-4BB7-9447-2310462EF06F-htm.html


Cheers
"How we think determines what we do, and what we do determines what we get."

Peter2

  • Swamp Rat
  • Posts: 650
Re: Use -purge without command-line output?
« Reply #5 on: December 16, 2014, 06:25:54 AM »
Hi

it seems that NOMUTT only suppresses the questions, but not the output on the commandline.

Code - Auto/Visual Lisp: [Select]
  1. Befehl:NOMUTT
  2.  
  3. Neuen Wert für NOMUTT eingeben <0>: 1
  4. CMDECHO
  5. 0
  6. _LINE
  7.  
  8. _-PURGE
  9. all
  10. *
  11. n
  12.  
  13. Keine unreferenzierten Blöcke gefunden.
  14. Löscht Layer "test".
  15. 1 Layer gelöscht.
  16.  
  17. Keine unreferenzierten Linientypen gefunden.
  18. Löscht Textstil "Beschriftung".
  19. 1 Textstil gelöscht.
  20.  
  21. Keine unreferenzierten Symboldateien gefunden.
  22. Löscht Bemaßungsstil "Beschriftung".
  23. Löscht Bemaßungsstil "Standard".
  24. 2 Bemaßungsstile gelöscht.
  25.  
  26. Keine unreferenzierten Mlinienstile gefunden.
  27.  
  28. Keine unreferenzierten Plotstile gefunden.
  29.  
  30. Keine unreferenzierten Tabellenstile gefunden.
  31.  
  32. Keine unreferenzierten Materialien gefunden.
  33.  
  34. Keine unreferenzierten Visuelle Stile gefunden.
  35. Löscht Multi-Führungslinienstil "Beschriftung".
  36. 1 Multi-Führungslinienstil gelöscht.
  37.  
  38. Keine unreferenzierten Gruppen gefunden.
  39.  
  40. Keine unreferenzierten Detailansichtsstile gefunden.
  41.  
  42. Keine unreferenzierten Schnittansichtsstile gefunden.
  43. NOMUTT
  44. 0
  45.  
  46. Befehl: _-PURGE
  47.  
  48. Typ der zu bereinigenden ungenutzten Objekte eingeben [BLöcke/Detailansichtsstile/BEmstile/Gruppen/LAyer/LTypen/MAterialien/MUlti-führungslinienstile/Plotstile/Symbole/Textstile/Mlinienstile/schnIttansichtsstile/tabellENstile/Visuellestile/Regappl/Nulllängengeometrie/leere teXtobjekte/ALles]: all
  49. Zu löschende(n) Namen eingeben <*>: *
  50. Jeden zu löschenden Namen bestätigen? [Ja/Nein] <J>: n
  51.  
  52. Keine unreferenzierten Blöcke gefunden.
  53.  
  54. Keine unreferenzierten Layer gefunden.
  55.  
  56. Keine unreferenzierten Linientypen gefunden.
  57.  
  58. Keine unreferenzierten Textstile gefunden.
  59.  
  60. Keine unreferenzierten Symboldateien gefunden.
  61.  
  62. Keine unreferenzierten Bemaßungsstile gefunden.
  63.  
  64. Keine unreferenzierten Mlinienstile gefunden.
  65.  
  66. Keine unreferenzierten Plotstile gefunden.
  67.  
  68. Keine unreferenzierten Tabellenstile gefunden.
  69.  
  70. Keine unreferenzierten Materialien gefunden.
  71.  
  72. Keine unreferenzierten Visuelle Stile gefunden.
  73.  
  74. Keine unreferenzierten Multi-Führungslinienstile gefunden.
  75.  
  76. Keine unreferenzierten Gruppen gefunden.
  77.  
  78. Keine unreferenzierten Detailansichtsstile gefunden.
  79.  
  80. Keine unreferenzierten Schnittansichtsstile gefunden.
  81.  

@BlackBox
thanks for the hint, but the current usage is a temporary purging of elements.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

BlackBox

  • King Gator
  • Posts: 3770
Re: Use -purge without command-line output?
« Reply #6 on: December 16, 2014, 10:33:52 AM »
it seems that NOMUTT only suppresses the questions, but not the output on the commandline.

Methinks that is because the -PURGE Command does not first check for NOMUTT == 1 prior to calling Editor.WriteMessage() Method.

The only way that I am aware of, to preclude such from being reported, is to clear the Command Prompt after-the-fact (giving the illusion that it didn't report anything), or to use API to purge the desired Collections, etc. programmatically... Which particularly using LISP is substantially slower than -PURGE Command (probably written in .NET, or ObjectARX, etc.).



@BlackBox
thanks for the hint, but the current usage is a temporary purging of elements.

No worries, peter2; thanks for your consideration.

Cheers
"How we think determines what we do, and what we do determines what we get."