Jump to content

Modify existing routine to allow arithmetic operations with dimensions.


capocad

Recommended Posts

Hi!

Have an old lisp that allows me to perform arithmetic operations with texts. I would like to be able to incorporate the possibility of select not only texts, but also dimensions. Honestly I do not know anything about programming in lisp. If someone has a similar routine or can modify it, I will be very grateful.

 

Thank you in advance and sorry for my english.

aritmetica con textos.lsp

Link to comment
Share on other sites

Your routine is very good. I love the use of fields that are updated automatically. The only problem is that the workflow seems to be faster in the routine that I attach.

 

This is an optimal workflow for me:

1 - Specify operator [Add / Subtract / Multiply / Divide]

2 - Select objects with numerical content (as many as you want and you can use window selection to make the selection of multiple figures faster)

3 - Confirm end of selection with right click

4 - Select existing text or field object to show the result. (This way you do not need to align the fields after using the command)

5 - Remember the operator previously selected to repeat command.

 

In this way it is only necessary to specify the operator once and then use the mouse / press enter to repeat.

 

Thank you very much!

Link to comment
Share on other sites

Thank you, I'm glad you like my program.

 

Your proposed workflow would only be suitable for commutative operations, such as addition & multiplication - for subtraction and division, the order of the operands matters and so a window selection could not be used.

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