DuanJinHui Posted August 5, 2015 Posted August 5, 2015 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) " ") ) ) ) ) Quote
Lee Mac Posted August 5, 2015 Posted August 5, 2015 A reactor is not necessary - simply alter the double-click action for attributed blocks in the CUI: Quote
DuanJinHui Posted August 5, 2015 Author Posted August 5, 2015 A reactor is not necessary - simply alter the double-click action for attributed blocks in the CUI: [ATTACH]55108[/ATTACH] Thank you lee , Quote
Lee Mac Posted August 5, 2015 Posted August 5, 2015 You're welcome - I would always suggest searching the web & AutoCAD help first before requesting a customisation. Quote
DuanJinHui Posted August 5, 2015 Author Posted August 5, 2015 You're welcome - I would always suggest searching the web & AutoCAD help first before requesting a customisation. I'm sorry. I'll remember Quote
Recommended Posts
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.