Purge and Audit lisp

Purge and Audit lisp

Anonymous
Not applicable
16,015 Views
30 Replies
Message 1 of 31

Purge and Audit lisp

Anonymous
Not applicable

Probably a simple lisp request to all of you versed in the language...

 

I'm looking for an easy lisp which can do the following equivalent keystrokes of commands in one call.

 

-PU <ENTER>

R <ENTER>

<*> <ENTER>

<N> <ENTER>

 

-PU <ENTER>

A <ENTER>

<*> <ENTER>

<N> <ENTER>

 

AUDIT <ENTER>

<Y> <ENTER>

 

Essentially I have muscle memorized the following in order to purge all registered applications without verifying names, purge all items without verifying names, and audit the drawing and fix all errors detected.

 

If I could group this into one command it would save on the carpal tunnel and I can easily instill this habit into people to use it as it is very beneficial when it comes to file size and preventing file corruptions from added errors.  If it could group all the result reports of the purges and audits together at the end of the lisp instead of at their sequence points too that would be beneficial but not necessary.

 

Thanks,

Warren

0 Likes
Accepted solutions (2)
16,016 Views
30 Replies
Replies (30)
Message 21 of 31

maratovich
Advisor
Advisor

Use it

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/run-audit-command-to-all-the-files-i...

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 22 of 31

maratovich
Advisor
Advisor

Use it

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/run-audit-command-to-all-the-files-i...

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 23 of 31

piyush.parihar24
Advocate
Advocate

Sorry That is same file find below attached file

0 Likes
Message 24 of 31

Anonymous
Not applicable

hi thanks a lot it is working,

But have one more problem, I have few files which has faulty objects

when I run audit, It will say as few items have passed and few items fail

 

For the items failing it will give the Cad handles as shown belowUntitled1.png

 

Is it not possible, when i run audit the adt file created should display only these faulty Object details as highlighted above

(i don't want the details of passing objects)

 

Thank You

0 Likes
Message 25 of 31

carloschantre123
Explorer
Explorer

Hello

 

If the report was already created, I think a possible solution would be to use the attached file, which contains a function that reads a text file, takes the required information and saves it in another file.

 

As in this case what is wanted is to omit the lines that say "Pass", then it could be useful.

With the APPLOAD command, the attached application can be loaded in AutoCAD.

 

Then, for example, execute the function in the following way:
(LeeArch "C: /BASE/REPORTE.TXT" nil "Pass" "C: /CHO/HOY.TXT" -4)
Where:
- "C: /BASE/REPORTE.TXT" Be the previously obtained report.
-nil It does not have a text or line to start reading, so read from the beginning.
- "Pass" Text that will search in the file lines and will exclude them due to the negative number (-4), if the number is positive, it will leave only the lines with this text.
- "C: /CHO/HOY.TXT" New file that will generate.

 

This function can be added to the application used to generate the report, and thus not have to do it independently. If the considered one is considered a viable option.

 

I hope this works.

0 Likes
Message 26 of 31

jrogulski
Advocate
Advocate

Do you have version for one file only?

I want to make purge and audit lisp just for one, opened file.

Possibly with extra 'zoom for every layout', 'lock viewport for each layout' and 'check if the scale of viewport is listed on "Scale of selected viewport list" '.

Thanks

0 Likes
Message 27 of 31

carartur16
Explorer
Explorer

Hello

 

I think the code in Message 7 of this forum can be used to purge and audit an open file.

 

Another option could be to download the free application: REPAIR
https://apps.autodesk.com/ACD/en/Detail/Index?id=3526209944153209364&appLang=en&os=Win32_64

 

On the additional points, I'll see how you can do that.

0 Likes
Message 29 of 31

Anonymous
Not applicable

pls.

sent to me file of ( 2. Purge All )

 

0 Likes
Message 30 of 31

sandipdp
Observer
Observer

PIYUSH ITS UPDATED FINAL LSP FILE FOR USING PURGEAUDITALL COMMAND

0 Likes
Message 31 of 31

sandipdp
Observer
Observer

ITS FINALY UPDATED LISP FILE FOR USING  PURGEAUDIT COMMAND ??

0 Likes