Jump to content

What I should write in Command line to use this lisp


Recommended Posts

Posted

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

Posted

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

Posted (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 by rkmcswain
fix typo
Posted

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

Posted

rkmcswain example in the prior post as shown would return, dwgnum = 123456

 

Actually it returns this:

 

rti.png

Posted (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 by Roy_043
Posted
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.

Posted

Thanks Rkmcswain I only use it for single text checking should have looked closer.

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