Jump to content

Seperate number and text (with space between them).


Sheep

Recommended Posts

33 minutes ago, BIGAL said:

I think your trying to hard just use my multi getvals get X Y Z much simpler.

Maybe you're right. To be honest learning LISP between jobs is hard. I have no idea how to execute the task in short way that i can learn and understand. Maybe the long way sometime better so i can learn and fully understand.

Link to comment
Share on other sites

@BIGAL, after following your advice about trying too hard, i took a different approch and manage to make it work. Yes, still  the hard way but it's something i can relate to. Thank you for the reminder.

Link to comment
Share on other sites

7 hours ago, Sheep said:

 


(setq xyzCombo (list Text1 (cadr aPLow) 0 ))

Whenever i run the lisp, my Acad will stop running.

 

 

(type Text1) = STR? try distof & atof

 (setq xyzCombo (list (atof Text1) (cadr aPLow) 0 ))

 

 

  • Thanks 1
Link to comment
Share on other sites

Should have posted this earlier, when you do Getstring and type 123 once space is hit it stops, but if you do Getstring and type "123 456 789" it will work the string input waits for the closing double quote. So use the convert list to make into ((123)(456)(789))

  • Thanks 1
Link to comment
Share on other sites

16 hours ago, hanhphuc said:

(type Text1) = STR? try distof & atof


 (setq xyzCombo (list (atof Text1) (cadr aPLow) 0 ))

Yes, the text1 was from a Getstring. I need to convert before i make the list. Thank you. 

One more thing, atof distof, rtos...what category is that? i mean, is that for string@decimal@list?

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