Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to programmatically selected ribbon button in revit?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
503 Views, 2 Replies

how to programmatically selected ribbon button in revit?

hi,

 

on form load of settings, behind i want to select my ribbon button programmatically.

 

i tried IsActive, IsChecked and Highlight but it doesnt workout for me.

 

so is there a way i can do it...

Tags (1)
2 REPLIES 2
Message 2 of 3
jeremy_tammik
in reply to: Anonymous

The official Revit API does not provide any such functionality, afaik.

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open
Message 3 of 3
jeremy_tammik
in reply to: Anonymous

Oh, actually, on second thoughts, one possibility is in fact supported:

 

If the ribbon button is connected with an external command, you can also launch that command programmatically:

 

https://thebuildingcoder.typepad.com/blog/2013/10/programmatic-custom-add-in-external-command-launch...

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Rail Community