Jump to content
fostertom

Double click > REFEDIT

Recommended Posts

fostertom

I'd a appreciate a CUI for Dummies type answer: how to make a double click on a Block or Xref open REFEDIT instead of BEDIT?

Share this post


Link to post
Share on other sites
Tuns

Alright, go into your CUI and look for the "Double click options" menu. Expand it and find "block" and then expand block. Click on "block- double click" and on the right where the macro is, delete this:

$M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C_bedit)

and insert this instead:

$M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C_REFEDIT)

If you can't figure it out or need help with anything else just ask.

Share this post


Link to post
Share on other sites
ReMark

Is it my eyes or do they look identical except for the last command? Change one word and done?

Share this post


Link to post
Share on other sites
Lee Mac
Insert this instead:

$M=$(if,$(and,$(>,$(getvar,blockeditlock),0)),^C^C_properties,^C^C_REFEDIT)

The macro can be simply:

^C^C_refedit

Since the BLOCKEDITLOCK system variable has no effect on the operation of the REFEDIT command. ;)

 

Though, I would also note that the 'and' DIESEL expression is redundant in the original macro, since the '>' DIESEL function will return a value of either 1 or 0.

Share this post


Link to post
Share on other sites
Tuns

Yes they're both the same... I simply replaced the last word because I didn't see a reason to change the entire thing. I know what you said works Lee but eh.. whatever the OP wants to use.

Share this post


Link to post
Share on other sites
fostertom

Fantastic - works like a dream - saw a cryptic hint in a book that this was possible.

Share this post


Link to post
Share on other sites
Tuns

Glad we could help :)

Share this post


Link to post
Share on other sites
fostertom

Any ideas on a one-key or a click-on-screen way to later execute REFCLOSE, without going looking for the icon to click?

My workflow, I go in and out of in-place editing Blocks all the time.

Share this post


Link to post
Share on other sites
Tuns

uhmm.. You can make a toolbar or something with the REFCLOSE button on it... I'd change the REFCLOSE to this if I were you:

^C^C_REFCLOSE;save;

This will make the button a better option... just need to put it in a more convenient place. You can even make a keyboard shortcut for it if you like. Let me know if that's what you want and I'll explain that. Either way I recommend changing the REFCLOSE in your CUI to what I have.

Share this post


Link to post
Share on other sites
tomifra

it would be better for my workflow if all the dialog boxes are removed, the nested xref dialog box after xrefedit command and the confirm changes dialog box at closing. is it possible?

thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×