Author Topic: How to do this?  (Read 1483 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1422
How to do this?
« on: May 08, 2012, 12:00:20 PM »
How to repeat if ?

Code: [Select]
(setq dist (getdist "Pick start and end points "))
(if
    (< dist 1500)
    (setq dst dist)
    (- dist 1000)
    )

ronjonp

  • Needs a day job
  • Posts: 7531
Re: How to do this?
« Reply #1 on: May 08, 2012, 12:16:22 PM »
Use
Code - Auto/Visual Lisp: [Select]

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

HasanCAD

  • Swamp Rat
  • Posts: 1422
Re: How to do this?
« Reply #2 on: May 08, 2012, 12:44:54 PM »

ronjonp

  • Needs a day job
  • Posts: 7531
Re: How to do this?
« Reply #3 on: May 08, 2012, 12:52:37 PM »
Something like this:

Code: [Select]
(while (and (setq dist (getdist "Pick start and end points ")) (< dist 1500))
  (setq dst dist)
  (- dist 1000)
)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
Re: How to do this?
« Reply #4 on: May 08, 2012, 01:28:19 PM »
+1
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie