DuanJinHui Posted August 5, 2015 Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted August 5, 2015 Share Posted August 5, 2015 A reactor is not necessary - simply alter the double-click action for attributed blocks in the CUI: Quote Link to comment Share on other sites More sharing options...
DuanJinHui Posted August 5, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted August 5, 2015 Share Posted August 5, 2015 You're welcome - I would always suggest searching the web & AutoCAD help first before requesting a customisation. Quote Link to comment Share on other sites More sharing options...
DuanJinHui Posted August 5, 2015 Author Share 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 Link to comment Share on other sites More sharing options...
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.