Jump to content

LeeMac's Tabsort.lsp lisp routine


elyosua

Recommended Posts

Is there anyone who can make the following modifications to LeeMac's Tabsort.lsp lisp routine?
1. Add a Cancel button, which exits the routine without making any changes, and pressing the Cancel key does the same.
2. Produce the same action when we click on the Close button of the dialog box.
I'm sorry, I do not speak english. Thank you.

Link to comment
Share on other sites

Yes, a cancel button should be possible - the original code is 11 years old? so Lee Mac might need to remember how it all works to do that, but looking quickly a cancel button should be easy to add to the DCL - open the LISP file and search for "Done" or "Reset" to find the line with the button... then add a 'cancel' button' next.

 

Near the end of the LISP there are 'Action Tile' sections which run the controls for each button in the DCL - you could add a section to control the cancel button you just added - I haven't made a DCL up from scratch for a while - copy and paste is great - but the cancel button might just cancel it all without needing extra code.

 

How to do that is online somewhere, have a look, see what you can find - weekend here, so not going to open CAD up to check.. but it sounds easy enough to do with a bit of online help

Link to comment
Share on other sites

48 minutes ago, Steven P said:

Yes, a cancel button should be possible - the original code is 11 years old? so Lee Mac might need to remember how it all works to do that, but looking quickly a cancel button should be easy to add to the DCL - open the LISP file and search for "Done" or "Reset" to find the line with the button... then add a 'cancel' button' next.

 

Near the end of the LISP there are 'Action Tile' sections which run the controls for each button in the DCL - you could add a section to control the cancel button you just added - I haven't made a DCL up from scratch for a while - copy and paste is great - but the cancel button might just cancel it all without needing extra code.

 

How to do that is online somewhere, have a look, see what you can find - weekend here, so not going to open CAD up to check.. but it sounds easy enough to do with a bit of online help

 

Ok, I've already made some changes and I think it works. Thank you.

 

Sin título.jpg

  • Like 1
Link to comment
Share on other sites

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...