Jump to content

Recommended Posts

Posted

After finding the VLISP bible on the net i've got some nice reading material sorted for the next few months and hopefully i can become more of a contributer here than a consumer. :oops: However, in the meatime i'd like to know if anyone can write me a LISP that will -purge -> 'all' and -audit -> 'y' in one hit, without promting me. :huh: Would like to set it up so the command is 'PNA' (Purge and Audit).

 

Many thanks in advance :wink:

 

Z

Posted

I believe this should work. I actually use "pall" as my "purge all" function :3

 

Also, I'm pretty sure this can be created as a macro, but I've no idea how.

 

(defun c:pna( / )
(command "-purge" "a" "" "n")
(command "audit" "y")
)

Posted

Top stuff, i was having to do this for about 150-200 drawings. You wonderfull people at CADTutor make my life that bit more bareable. :D Thanks again mate.

 

Z

Posted

Also, I'm pretty sure this can be created as a macro, but I've no idea how.

 

Macro:

 

^C^C-purge;a;;n;audit;y;

Posted

Afteroon Lee,

 

How do i turn this into a Macro? Can it be done with Visual Lisp? :S

 

Z

Posted
Afteroon Lee,

 

How do i turn this into a Macro? Can it be done with Visual Lisp? :S

 

Z

 

You just assign it to a button -

 

Right click on a button on any toolbar, go to Customise,

 

Under "Commands" tab, go to User-defined

 

Drag "User Defined Button" into the workspace and click on it.

 

Paste the code supplied into the "Macro" box

Posted

Nice Nice Nice! I Think i'll concentrate on devloping more of a whole perspective of LISPs before i dive into macros. Cheers for the info thou ;)

 

Z

Posted

No probs - if you have any other questions, just ask :)

Posted
You just assign it to a button -

 

Right click on a button on any toolbar, go to Customise,

 

Under "Commands" tab, go to User-defined

 

Drag "User Defined Button" into the workspace and click on it.

 

Paste the code supplied into the "Macro" box

That's my usual method

 

My other 'Save' button goes 'ZX, purge, save, close, open' so I can't forget to purge, and to make the whole process of working through batch edits so much quicker

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...