Jump to content

Recommended Posts

Posted (edited)

>")

(setvar "OSMODE" 15359)

(setvar "CLAYER" OldLay)

 

);end while

 

);end defun[/code]*** sorry i no good english ***

Edited by git_thailand
Posted

i want to apply this lisp for other method.

 

 

*** sorry i no good english ***

Posted

First of all, you need to describe exactly what you intend to achieve – if is tough to do it in English, then try to post a descriptive picture.

 

On the code you posted, I have some comments:

  • the source for UDIST function is missing.
  • there is no condition to be evaluated to exit the WHILE cycle – the user need to end the run with or let it crash by no inputting points. Try something like this instead:

(while (and (setq pt1 (getpoint "\nPick first point : "))
           (setq pt2 (getpoint "\nPick End point : ")))







...

  • why replace OSMODE system variable with a built-in value when you stored user setup?

 (setvar "OSMODE" [s]15359[/s] OSN)

 

 

No offence, but people may be reluctant to assist you on this since in the past you started many discussions and never provided enough information and/or feedback; I’m still curios which solution on this issue is the right one.

Posted
First of all, you need to describe exactly what you intend to achieve – if is tough to do it in English, then try to post a descriptive picture.

 

On the code you posted, I have some comments:

 

  • the source for UDIST function is missing.
  • there is no condition to be evaluated to exit the WHILE cycle – the user need to end the run with or let it crash by no inputting points. Try something like this instead:

(while (and (setq pt1 (getpoint "\nPick first point : "))
           (setq pt2 (getpoint "\nPick End point : ")))







...

 

  • why replace OSMODE system variable with a built-in value when you stored user setup?

 (setvar "OSMODE" [s]15359[/s] OSN)

 

 

No offence, but people may be reluctant to assist you on this since in the past you started many discussions and never provided enough information and/or feedback; I’m still curios which solution on this issue is the right one.

 

i am sorry

Posted

The point is not to make you feel sorry, but to persuade to provide more information and feedback on your threads. Please help us to help you.

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