Anonymous
256 Vistas, 2 Respuestas
07-08-2018
06:31 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
07-08-2018
06:31 AM
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!
¡Resuelto! Ir a solución.
07-08-2018
06:46 PM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
07-08-2018
06:46 PM
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
07-08-2018
07:29 PM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar