Jump to content

Recommended Posts

Posted

Why did you consider it nil since the getpoint function would return the coordinates to it to insert the text unless the user may press *cancel* ?

 

(cons 10 (trans (getpoint "\n Text Location :") 1 0))
Text Location :(10 12.3418 9.67425 0.0)

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • Tharwat

    12

  • Lee Mac

    10

  • shakuhachi

    3

Top Posters In This Topic

Posted

Because getpoint returns nil if the user fails to pick a point, try pressing enter at the prompt.

Posted
Because getpoint returns nil if the user fails to pick a point, try pressing enter at the prompt.

 

I did not think that a user might press enter instead of locating the text in front of their eyes . :D

 

So now , to include the *getpoint* within the if that would force the (princ) to quite calmly without nil or error at the end .

 

Waw .....

 

Regards.

Posted
I did not think that a user might press enter instead of locating the text in front of their eyes . :D

 

Good programming means to account for every eventuality.

Posted
Good programming means to account for every eventuality.

 

Great , I would never forget this sentence .

 

Thank you Lee .

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