Jump to content

GrRead Text Editor...


Lee Mac

Recommended Posts

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    12

  • Freerefill

    5

  • David Bethel

    2

  • wizman

    2

I think this is better Wiz:

 

(defun c:spinner (/ ss Objs Ang cnt)
 (vl-load-com)
 (if (setq ss (ssget))
   (progn
     (setq Objs (mapcar 'vlax-ename->vla-object
                  (vl-remove-if 'listp
                    (mapcar 'cadr (ssnamex ss))))
           Ang (/ pi 1000) cnt 0)
   (while (< cnt 4000)
     (mapcar
       (function
         (lambda (Obj)
           (vla-rotate Obj
             (vlax-3D-point (getvar "VIEWCTR")) Ang)
           (vla-update Obj))) Objs)
     (setq cnt (1+ cnt)))))
 (princ))

Link to comment
Share on other sites

I think this is better Wiz:

 

:D.. i like yours also lee, i always like spinners, here's another one:

 

 

(defun c:cx ( / counter old_csize old_snpang *error*)
   (defun *error* (errmsg)
       (setvar 'cursorsize old_csize)
       (setvar 'snapang old_snpang)
   )
   (setq old_csize
                    (getvar 'cursorsize)
         old_snpang
                    (getvar 'snapang)
   )
   (setvar 'snapang 0)
   (setvar 'cursorsize 5)
   (setq counter 0)
   (while (/= counter 360)
       (command "snapang" counter)
       (setvar 'cursorsize (+ 5 (getvar 'cursorsize)))
       (getint "\npress spacebar\n")
       (setq counter (+ 30 counter))
   )
   (*error* nil)
   (princ)
)

Link to comment
Share on other sites

Another:

 

(defun c:spin (/ i j lst dis gr cir cnt k)
 (setq i -5 lst '() cir '() k -1 cnt 100
       dis (* (/ (getvar 'CURSORSIZE) 100.) (getvar 'VIEWSIZE)))
 (while (eq (car (setq gr (grread nil 5 0))) 5)
   (redraw)
   (setq j -1 lst nil i (+ 5 i) cir nil cnt (1+ cnt))
   (repeat 400
     (setq lst
       (append lst
         (list
           (polar (cadr gr)
             (* (+ (setq j (1+ j)) i) (/ pi 300.)) dis)))))
   (repeat 400
     (setq cir
       (append cir
         (list
           (polar (car lst)
             (* (setq k (1+ k)) (/ pi 200.)) (/ dis 10.))))))
   (grvecs (append (list (rem (/ cnt 100) 255)) lst cir)))
 (princ))

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...