CAD USER Posted July 14, 2016 Posted July 14, 2016 Dear all, This lisp from Lee Mac website. someone can tell me what I should write in command to use this lisp. parase number.lsp Quote
rkmcswain Posted July 14, 2016 Posted July 14, 2016 There is a perfect example at the bottom of the page where you found this. http://www.lee-mac.com/parsenumbers.html Quote
CAD USER Posted July 14, 2016 Author Posted July 14, 2016 There is a perfect example at the bottom of the page where you found this. http://www.lee-mac.com/parsenumbers.html I saw that, I didn't understand, that's why I post here. Quote
ReMark Posted July 14, 2016 Posted July 14, 2016 Wouldn't that be this... (LM:parsenumbers "your string here") As per the example RKM pointed you to at Lee Mac's website which was (LM:parsenumbers "1a-2.3b4c56"). Quote
rkmcswain Posted July 14, 2016 Posted July 14, 2016 (edited) Well, I can't explain it any more than this. (LM:parsenumbers "1a-2.3b4c56") The first part is the function name LM:parsenumbers The second part is the arguments you are passing to the function "1a-2.3b4c56" Edited July 14, 2016 by rkmcswain fix typo Quote
BIGAL Posted July 15, 2016 Posted July 15, 2016 Here is an example my layout name is "Layout 22" in this code its assigned to variable tabname so (setq dwgnum (Lm:parsenumbers tabname)) returns dwgnum as 22. The bit you where probbaly missing was the assigning to a variable the answer. rkmcswain example in the prior post as shown would return, dwgnum = 123456 Quote
rkmcswain Posted July 15, 2016 Posted July 15, 2016 rkmcswain example in the prior post as shown would return, dwgnum = 123456 Actually it returns this: Quote
Roy_043 Posted July 15, 2016 Posted July 15, 2016 (edited) My guess is that the OP wants to update text entities with recalculated numerical portions. But he is not very clear in this and his other request. Edited July 15, 2016 by Roy_043 Quote
tombu Posted July 15, 2016 Posted July 15, 2016 My guess is that the OP wants to update text entities with recalculated numerical portions. But he is not very clear in this and his other request. Rules for starting threads: 1. No mind readers here, take at least 2 minutes to explain what you want someone else to spend half an hour coding for you. Most of the time that code or one similar has already been written. 2. If you're asking about something you found online post the link, not the code. Quote
BIGAL Posted July 16, 2016 Posted July 16, 2016 Thanks Rkmcswain I only use it for single text checking should have looked closer. 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.