Jump to content

Recommended Posts

Posted

The Pan command doesn't work on my mouse. The button died. :ouch:

does anyone have a Pan lisp? the Pan version I am looking for is the Pan with the hand cursor. not -pan.

I made this but it is garbage. I would like the dufun = 11 for my hot key.

-----------------------

Pan

(defun c:11()

(command "Pan"))

------------------

 

Thank you for your time :)

Posted

Ummmm .. buying a new mouse seems like the most direct answer.:lol:

Or try (setvar 'mbuttonpan 1) .. maybe it's not the mouse.

Posted

Yeah I know but I am at work right now...

Posted
Ummmm .. buying a new mouse seems like the most direct answer.:lol:

Or try (setvar 'mbuttonpan 1) .. maybe it's not the mouse.

Did you try this?

Posted

I tried to modify my pan command to 11 months ago but I suck at writing lisp.

Posted

Yes it is set to one. My poor little mouse is dying. we had a good time together at work.

Posted
Yes it is set to one. My poor little mouse is dying. we had a good time together at work.

 

:) ... when you say you're trying to make '11' hotkey lisp are you referring to mapping to a function key?

Posted

Sorry I am not sure what you are asking. I do a lot of wire runs and fillet command so I use:

----------------------------------------------------------------------

(defun c:5()

(command "LINE"))

--------------------------------------------------------------------------

(defun c:6()

(command "fillet"))

--------------------------------------------------------------------------

 

I would like pan set up as 11 if possible and add it to my lisp list.

Posted (edited)

How about RMB:

(defun pancakes:CB ( rtr args )
 (vla-SendCommand (vla-get-ActiveDocument (vlax-get-acad-object)) "PAN")
)

(foreach rtr (cdar (vlr-reactors :VLR-Mouse-reactor)) (if (= "pancakes" (vlr-data rtr)) (vlr-remove rtr)) )
(vlr-Mouse-Reactor "pancakes" '((:VLR-BeginRightClick . pancakes:CB)))
(vl-load-com)(princ)

Edited by Grrr
Posted

Unknown command "PANCAKES". Press F1 for help.

CB Constainbar ?

Posted

Using Grrr's idea .. this should do what you want:

(defun c:11 nil (vla-sendcommand (vla-get-activedocument (vlax-get-acad-object)) "PAN "))

Posted
How about RMB:

(defun pancakes:CB ( rtr args )
 (vla-SendCommand (vla-get-ActiveDocument (vlax-get-acad-object)) "PAN")
)

(foreach rtr (cdar (vlr-reactors :VLR-Editor-reactor)) (if (= "pancakes" (vlr-data rtr)) (vlr-remove rtr)) )
(vlr-Mouse-Reactor "pancakes" '((:VLR-BeginRightClick . pancakes:CB)))
(vl-load-com)(princ)

 

Cool idea but breaks the right click menu :shock:

Posted
Cool idea but breaks the right click menu :shock:

 

Thanks Ron, I know I know.. :lol:

Reminds me of Lee's reactor that retrieves the last command call (due my request) - I find it awesome!

 

Duh, corrected a mistake:

(cdar (vlr-reactors :VLR-[b]Mouse[/b]-reactor)

  • 5 months later...

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