Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Small problem..Can someone give a little tweak to 'length' asked on my lisp file

Anonymous

Small problem..Can someone give a little tweak to 'length' asked on my lisp file

Anonymous
No aplicable

Can someone edit the lisp in such a way that when "Enter the width of door" is asked it must automatically subtract 4 inches from my input value...For eg;when I input the  Width of door as 4ft then the lisp must subtract 4inch automatically and enter the final input as 3ft8inch"

Thanks in Advance!

0 Me gusta
Responder
Soluciones aceptadas (1)
256 Vistas
2 Respuestas
Respuestas (2)

leeminardi
Mentor
Mentor
Solución aceptada

Your current code has:

  (setq W (getdist "\nEnter Width of Door <3.0'>:  "))
  (if (= W nil)
    (setq W 36)
  )
  (setq W (+ W 4))

If you remove the line:

(setq W (+ W 4))

W will be 4 inches less  as this line adds 4 to W. . 

 

What value do you want if no value is given?  Currently it is 40 (36 +4).  If you want it to be 40 and you remove the line (setq W ( + W 4)) then change the line  

(setq W 36)

 to

(setq W 40)

 

lee.minardi

Anonymous
No aplicable

WOW...WORKED AS EXPECTED..

THANK YOU SIR! GOD BLESS YOU!

0 Me gusta