[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 282: Undefined array key "app_rebranding_id"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 283: Undefined array key "app_url_scheme"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 284: Undefined array key "app_icon_url"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 285: Undefined array key "app_name"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 287: Undefined array key "app_alert_message"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 289: Undefined array key "app_android_id"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 290: Undefined array key "app_android_description"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 291: Undefined array key "app_banner_message_android"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 294: Undefined array key "app_ios_id"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 295: Undefined array key "app_ios_description"
[phpBB Debug] PHP Warning: in file [ROOT]/ext/tapatalk/tapatalk/event/main_listener.php on line 296: Undefined array key "app_banner_message_ios"
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3035)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3035)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3035)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4150: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3035)
Foros Ingeniería Civil • ayuda en AUTOLISP porfavor :)
Página 1 de 1

ayuda en AUTOLISP porfavor :)

Publicado: Mar Oct 26, 2010 9:59 am
por Rodrigote92
Compañeros , espero que anden bien en todo, este es mi primer tema y es acerca de la programacion en AUTOLISP, se que nos facilita el trabajo .

QUIERO SU AYUDA, YA QUE QUISIERA DOCUMENTAR(saber cual es la funcion de cada "linea" de este programa") por ejemplo :

(DEFUN C:cpe ) es el nombre del programa que pondre, pero quisiera ke me aclaren las demas lineas de este programita en AUTOLISP

GRACIAS DE ANTEMANO,
Rodrigo Ticona Gonzales


Inserta cotas en las curvas de nivel a partir de su elevación


(defun c:cpe (/ P VAL scl)
(setvar "cmdecho" 0)
(command "_wipeout" "_f" "_off")

(if (null escala)(setq escala 1))
(setq scl (getreal (strcat "\nIngrese la escala de la cota <" (rtos escala 2 3) ">: ")))
(if (null scl)(setq scl escala))
(setq escala scl)

(setq om (getvar "osmode"))
(setvar "osmode" 512)

(while
(setq p (getpoint"\nSeleccione un punto en la linea de contorno: "))
(setq val (rtos (nth 2 p) 2 3))
(if (wcmatch val "*.00*")
(progn
(setq val (rtos (nth 2 p) 2 0))
(command "_insert" "el_tag" p scl scl pause val)
)
(progn
(setq val (rtos (nth 2 p) 2 1))
(command "_insert" "el_tag2" p scl scl pause val)
)
)
)

(setvar "osmode" om)
(setvar "cmdecho" 1)
(princ)
)


(setvar "modemacro" "Rodrigo Ticona")

Publicado: Mar Oct 26, 2010 4:05 pm
por mgf2004
Aqui, my friend Jeff da una lección sobre tus dudas: http://www.jefferypsanders.com/autolispbeg.html
... y al final tira su "rollo" .... "make a donation".
.... Aqui tambien hay material de forista sobre lisp: http://www.hispacad.com/foro/index.php