Jump to content
petsagouris

How to make double clicking on a Block to open the in-place editor

Recommended Posts

pBe

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" "" "")
  
)

Share this post


Link to post
Share on other sites
asos2000

Command : CUI

 

Then follow the attached image

001.jpg

Share this post


Link to post
Share on other sites
pBe

oh that :oops:

 

my mistake :)

Share this post


Link to post
Share on other sites
Tharwat
oh that :oops:

 

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

Share this post


Link to post
Share on other sites
asos2000
oh that :oops:

 

my mistake :)

NO

This is only thinking out of the box

 

All roads lead to Rome

Share this post


Link to post
Share on other sites
asos2000
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

Share this post


Link to post
Share on other sites
Tharwat
I didnt get it

Could 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

Share this post


Link to post
Share on other sites
petsagouris
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.

CropperCapture[20].png

Share this post


Link to post
Share on other sites
Tharwat
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

Share this post


Link to post
Share on other sites
pBe
No it is not yours Buddy. :)

 

You did a very nice routine.....

 

Thank you for the kind words my friend :)

Share this post


Link to post
Share on other sites
petsagouris
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)

Share this post


Link to post
Share on other sites
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)

 

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.

Share this post


Link to post
Share on other sites
asos2000
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?

Share this post


Link to post
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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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