Jump to content

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


petsagouris

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

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