Jump to content

Recommended Posts

Posted

Be nice, first post and I came to LISP?

 

We/I do presentations weekly to managers or any one interested and I would like to have a pointer/arrow in place of crosshair/aperature.

 

Thinking it would be easier for some to follow the bouncing ball?

 

I'm sure this is why laser pointers where invented, however, there is a thing called essential tremors. Without getting all medical here, it was a guy with essential tremors that also invented laser light shows!

 

Perhaps, we just need new managers. :D

 

thanks in advance

Tom

Posted

Have you tried setting the crosshair size to 1 and the color to say red? It's a lot easier than a custom routine. Also it might vary from release to release as to builtin options in ACAD. -David

pointer.jpg

Posted

Here is a toggle for what David suggests:

 

(defun c:test (/ r g b Disp)
 (vl-load-com)
 ;; Cross Hair Toggle  ~  Lee Mac  ~  24.01.10

 (setq r 255 g 0 b 0)

 (setq *acad (cond (*acad) ((vlax-get-acad-object)))
       Disp  (vla-get-Display (vla-get-Preferences *acad)))

 (or OldSettings
   (setq OldSettings
     (cons (getvar 'CURSORSIZE)
           (vlax-variant-value
             (vlax-variant-change-type
               (vla-get-ModelCrossHairColor Disp) vlax-vbLong)))))

 (cond (*flag*  (setvar 'CURSORSIZE (car OldSettings))
                (vla-put-ModelCrossHairColor Disp (cdr OldSettings))
                (setq *flag* nil))

       ((setq *flag* t)

              (setvar 'CURSORSIZE 3)
              (vla-put-ModelCrossHairColor Disp (+ r (* 255 g) (* 65536 b)))))

 (princ))

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...