Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Today's Giveaway: Purge Dictionary Items [PDI]...

7 REPLIES 7
Reply
Message 1 of 8
scot-65
7746 Views, 7 Replies

Today's Giveaway: Purge Dictionary Items [PDI]...

Keywords: namedobjdict foreach acad_strlsort dictionary wcmatch dictremove purge

A while back someone here wanted to remove all dictionaries that were
generated by a "Kiwi" program. The solution was offered but was not
very user friendly as far as allowing for random user input of pattern.

The first subroutine in the provided answer did not catch all of the
declarations using VLAX, only about two-thirds of them:
(if (vlax-property-available-p dictionary 'name)
(setq dictionaries_list (cons (vla-get-name dictionary) dictionaries_list)))

I finally got around to studying and creating this routine.
The code is written in LISP, and for what it does, even better than
the answer that was provided; is in fact smaller in file size.

Enjoy all ! ! ! !

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


7 REPLIES 7
Message 2 of 8
RGUS99
in reply to: scot-65

What's a "Kiwi" program?
Message 3 of 8
Anonymous
in reply to: scot-65

Kiwi Software was a German company which developed ProSteel 3D for
structural design. The company was lately acquired by Bentley, with the
purpose to deliver complete structural workflow solution.

It is known that a couple of years ago, there was a bug in a plug-in enabler
for the ProSteel 3D proxies, that lead to the abnormal proliferation of some
dictionaries which were related to this application (they had the "kiwi"
string embedded in the name). The affected drawings were very heavy to
handle and slow to process, therefore a lot of people (included myself) had
to write some custom programming in order to get rid of these dictionaries.

The company provided a patch at that time and AFAIK the bug was corrected.

Regards


a écrit dans le message de news: 6361261@discussion.autodesk.com...
What's a "Kiwi" program?
Message 4 of 8
kemern
in reply to: scot-65

It is magic S

Message 5 of 8

how to use this lisp file
Message 6 of 8

Employ one of the third-party interface points to load the routine.
From there enter 'PDI' at the command prompt and enter the case
specific wildcard pattern followed by an asterisk "*".
Example: AEC*

Search elsewhere in this forum for possible interface points.
For now you can use command APPLOAD and select the
"Contents" button.

Hope this helps.

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


Message 7 of 8
phanquyet.vn
in reply to: scot-65

I want lisp file for my code. Can you send the file "* .lsp" to phanquyet.vn@gmail.com?

Thank you for sharing!

Message 8 of 8
scot-65
in reply to: phanquyet.vn

Well, since the original post was way back in 2010,

I'll share the original code with everyone.

 

...

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost