petsagouris Posted January 12, 2011 Posted January 12, 2011 I have followed the article about Using the In-Place Block Editor (REFEDIT) and I now need the macro to press the "Ok" on the Refedit confirmation dialog automatically. How would I go about that? Quote
pBe Posted January 12, 2011 Posted January 12, 2011 something like this? (defun c:test () (sssetfirst nil (ssget ":S" '((0 . "INSERT")))) (command "_.-refedit") (while (> (getvar "CMDACTIVE") 0) (command "_o" "" "") ) ) or just (defun c:test () (sssetfirst nil (ssget ":S" '((0 . "INSERT")))) (command "_.-refedit" "_o" "" "") ) Quote
asos2000 Posted January 12, 2011 Posted January 12, 2011 Command : CUI Then follow the attached image Quote
Tharwat Posted January 12, 2011 Posted January 12, 2011 oh that my mistake No it is not yours Buddy. You did a very nice routine and although the solution that was given by image would cancel the double click for block editor , which means it is not a perfect solution at all . So if you go down through the CUI and at the same location that was shown by Asos you would release that the "refedit" is already supported and there is no need to add any , except modifying the mistake that took a place within the double click action for "refedit" . Best regards, Tharwat Quote
asos2000 Posted January 12, 2011 Posted January 12, 2011 oh that my mistake NO This is only thinking out of the box All roads lead to Rome Quote
asos2000 Posted January 12, 2011 Posted January 12, 2011 No it is not yours Buddy. ... which means it is not a perfect solution at all . ... Best regards, Tharwat I didnt get it Could you explain plz Quote
Tharwat Posted January 12, 2011 Posted January 12, 2011 I didnt get itCould you explain plz If the user modified the double click action according to what you did described earlier , they would rise one more problem with the Block Editor . Try it Quote
petsagouris Posted January 12, 2011 Author Posted January 12, 2011 Command : CUI Then follow the attached image I did that (almost the same as the tutorial) and I have the dialog (shown in the attached image)... this is where I need the "OK" to be pressed automatically. Or even the dialog bypassed. Quote
Tharwat Posted January 12, 2011 Posted January 12, 2011 I did that (almost the same as the tutorial) and I have the dialog (shown in the attached image)... this is where I need the "OK" to be pressed automatically. Or even the dialog bypassed. Type at the command line :refedit and then select any block. Tharwat Quote
pBe Posted January 12, 2011 Posted January 12, 2011 No it is not yours Buddy. You did a very nice routine..... Thank you for the kind words my friend Quote
petsagouris Posted January 12, 2011 Author Posted January 12, 2011 Type at the command line :refedit and then select any block. Tharwat Thanks but that didn't work as well... nevertheless I've found the solution.The Customize User Interface dialog -> Double Click -> Block -> Macro field should be : $M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C-refedit;Ok;A;Y) Quote
Tharwat Posted January 12, 2011 Posted January 12, 2011 Thanks but that didn't work as well... nevertheless I've found the solution.The Customize User Interface dialog -> Double Click -> Block -> Macro field should be : $M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C-refedit;Ok;A;Y) Yeah .... and that must be added to the Double action click which is related to the Xref button only and not to the Block button. Quote
asos2000 Posted January 12, 2011 Posted January 12, 2011 If the user modified the double click action according to what you did described earlier , they would rise one more problem with the Block Editor . Try it What is/are problem/s? 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.