Jump to content

Recommended Posts

Posted

Hello

 

I need a tip on how to make cross hair visible during getcorner function.Crosshair disappears during the second pick point.

 

(setq zonearea (getcorner (setq origin (getpoint))  "corner" )) 

 

Merci

Posted

To my knowledge, the only way you could achieve this is by creating a function to emulate the behaviour of the getcorner function, by using the grread function to monitor the cursor location.

 

For example:

 

;; Get Corner  -  Lee Mac
;; A grread substitution for the getcorner function
;; pt  -  A point to be used as the base point.
;; msg -  A string to be displayed to prompt the user.
;; Returns: Selected UCS point, else nil

(defun LM:GetCorner ( pt msg / gr pl )
   (if msg (princ msg))
   (while (= 5 (car (setq gr (grread t 13 0))))
       (redraw)
       (setq gr (cadr gr)
             pl (list pt (list (car gr) (cadr pt))
                      gr (list (car pt) (cadr gr))
                )
       )
       (mapcar 'grdraw pl (cons (last pl) pl) '(-1 -1 -1 -1))
   )
   (redraw)
   (if (listp (cadr gr)) (cadr gr))
)

(if (setq p1 (getpoint "\nFirst Point: "))
   (LM:GetCorner p1 "\nNext Point: ")
)

Posted

Thanks for reply, its getting a bit to much I dont need to see crosshair that badly.Its strange first point crosshair there, but on the second point it dissapears.

Posted
Its strange first point crosshair there, but on the second point it dissapears.

 

This is standard AutoCAD behaviour - the same occurs for Window / Crossing selections.

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