Guest User

Untitled

a guest
Apr 24th, 2012
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.54 KB | None | 0 0
  1. ; http://www.jefferypsanders.com/autolispintr.html
  2. ; http://www.afralisp.net/visual-lisp/tutorials/properties-methods-part-3.php
  3. ; http://www.cadtutor.net/forum/showthread.php?33295-Help-for-VLA-*-functions-(where-to-find)
  4.  
  5.  
  6. (DEFUN C:circulos ()
  7.    
  8.     (SETQ centro (GETPOINT "centro"))
  9.     (SETQ radio (GETDIST centro "distancia"))
  10.     (SETQ circulos (GETINT "circulos"))
  11.  
  12.     (SETQ radio_actual (/ radio circulos))
  13.  
  14.     (REPEAT circulos
  15.         (COMMAND "_circle" centro radio_actual)
  16.         (SETQ radio_actual (+ (/ radio circulos) radio_actual))
  17.     )
  18.  
  19. )
Advertisement
Add Comment
Please, Sign In to add comment