Jump to content

Command Replace


DuanJinHui

Recommended Posts

Hello friends.

 

Double-click on the attribute block. default use "eattedit" edit.

I want Double-click on the attribute block with command "attedit " . Can do ?

 

How use this reactor ?

(or *dblclkReactor*
   (setq *dblclkReactor*
          (VLR-Mouse-Reactor
            nil
            '((:VLR-beginDoubleClick . dblclk-edit))
          )
   )
)
(defun dblclk-edit (vlrobj dblclk_point / owner dblclk_etype p)
 (setq owner (nentselp (setq p (trans (car dblclk_point) 0 1))))
 (if (and (= owner nil) (= 0 (getvar 'cmdactive)))
   (progn
     (alert "My Dialog")
;;(vla-eval (vlax-get-acad-object) "Sendkeys \"{ESC}\"")
     (vla-sendcommand
       (vla-get-activedocument (vlax-get-acad-object))
       (strcat (rtos (car p) 2 3) "," (rtos (cadr p) 2 3) " ")
     )
   )
 )
)

Link to comment
Share on other sites

A reactor is not necessary - simply alter the double-click action for attributed blocks in the CUI:

 

[ATTACH]55108[/ATTACH]

 

Thank you lee , :)

Link to comment
Share on other sites

You're welcome - I would always suggest searching the web & AutoCAD help first before requesting a customisation.

 

I'm sorry. I'll remember

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