Invoke contextual ribbon when selecting a specific block

Invoke contextual ribbon when selecting a specific block

Shay.Gaghe
Advocate Advocate
317 Views
6 Replies
Message 1 of 7

Invoke contextual ribbon when selecting a specific block

Shay.Gaghe
Advocate
Advocate

Hi

When I click a block with a certain prefix in it's name I want to invoke a contextual ribbon. 

 

How it can be done?

 

Tx.  S

 

 

 

 

 

Using Autocad 2018, Autocad Architecture.
Please accept as solution if i solved your problem
0 Likes
318 Views
6 Replies
Replies (6)
Message 2 of 7

jduframe
Enthusiast
Enthusiast

this is an example I have for dimension linear toolbar button

 

^C^C(command "+RIBBON" "ACAD.ID_TabAnnotate");_dimlinear

0 Likes
Message 3 of 7

jduframe
Enthusiast
Enthusiast

under CUI editor you look under ribbons for the ID and replace (underlined) with ID wanted

and the last part is the command invoked

^C^C(command "+RIBBON" "ACAD.ID_TabAnnotate");_dimlinear

0 Likes
Message 4 of 7

Shay.Gaghe
Advocate
Advocate

U call the annotate tab Ben ever a dim is selected?  But how I can call a  costume tab only when a specific block is selected?

Using Autocad 2018, Autocad Architecture.
Please accept as solution if i solved your problem
0 Likes
Message 5 of 7

jduframe
Enthusiast
Enthusiast

not sure on that, I only know how to have ribbon change when toolbar button is selected, unless you want to make a button that inserts the block and calls the ribbon all in one

0 Likes
Message 6 of 7

jduframe
Enthusiast
Enthusiast

^C^C(command "+RIBBON" "ACAD.ID_TabAnnotate");_insert;DetB;\;;;;;^C^C

 

I believe it would be similiar to this, with ribbon name replaced and which ever you name you block

Message 7 of 7

Shay.Gaghe
Advocate
Advocate

I'll give it a try. Tx

Using Autocad 2018, Autocad Architecture.
Please accept as solution if i solved your problem
0 Likes