BIGAL Posted September 30, 2010 Posted September 30, 2010 I have tried to find here and in autocad help if there is a simple vl-string command to return a single number within a string eg "R.L. 98.80" want 98.80 I found an answer at http://www.cadtutor.net/forum/showthread.php?43262-count-the-number-a-given-text-letters-e.g.-3No.-H-s&highlight=remove thanks lee mac using normal lisp. Fairly lengthy code for what seems a simple question. If it doesn,t exist then I will use the available code. Quote
alanjt Posted September 30, 2010 Posted September 30, 2010 Combinevalues [Add/Divide/Multiply/Subtract object values] Check out the subroutine I used to extract numbers from a string. Lee's is much more robust, his will break up letters and numbers, mine just removes everything that isn't a valid number. Quote
Recommended Posts
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.