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: 

add revit buttons to new addin

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Anonymous
3331 Views, 8 Replies

add revit buttons to new addin

Hi, this I suppose is a very novate question but don't find code in C# about it,

 

I'd like to add button like "link cad" "link revit" or export > "Cad formats" to an addin, this way make easy to me access to this functionality.

 

I appreciate any help, tnx!

 

Something like the image attach.

 

 

Tags (3)
8 REPLIES 8
Message 2 of 9
Anonymous
in reply to: Anonymous
Message 3 of 9
Anonymous
in reply to: Anonymous

Hi, tnx for answer, but I already do that in a custom tab, what Id like to do is: add actually revit button in my tab,not create a custom button for custom functionality.

 

or if I need to add a custom button, there is some code, to make exactly the same actions of the button?, i mean, for example:
if you click: Insert> link revit.
then call file chooser and when select file, and link it when accept

 


Regards!

Regards!

Message 4 of 9
MarryTookMyCoffe
in reply to: Anonymous

http://archi-lab.net/create-your-own-tab-and-buttons-in-revit/

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
Message 5 of 9
Anonymous
in reply to: MarryTookMyCoffe

Hi! tnx for answer, but I already can add custom buttons and tabs, but I'd like to add to add the button that already exist in Revit inside my custom tab.

 

I've seen some tutorials where I can add custom buttons to existing tabs, I want to do the otherwise, add existing buttons to custom tab.

 

I attached an image with the idea

 

Regards!

Message 6 of 9
MarryTookMyCoffe
in reply to: Anonymous

you can try using :

  • AdWindows.dll
  • UIFramework.dll
    read about it more here:

http://thebuildingcoder.typepad.com/blog/2011/02/pimp-my-autocad-or-revit-ribbon.html

with that you should get accesses to a default tabs and ribbons.

-------------------------------------------------------------
--------------------------------|\/\/|------------------------
do not worry it only gonna take Autodesk 5 years to fix bug
Message 7 of 9
FAIR59
in reply to: Anonymous
Message 8 of 9
Anonymous
in reply to: Anonymous

I would just have the push button run a PostCommand.  Here is something I use to run the sync button command from my button on my tab in the Ribbon.  I use it to control who is syncing by creating a sync queue and when the model is available it run the sync for the user.   

 

RevitCommandId syncCmdId = RevitCommandId.LookupPostableCommandId(PostableCommand.SynchronizeAndModifySettings);
 
uiapp.PostCommand( syncCmdId );

 

 

Message 9 of 9
Anonymous
in reply to: Anonymous

hi
i'm already make a Tab and Button, but i want give Action to Button, like i want to make it open CMD after press on it, i'm already have another project using C# able me to open CMD so how can i connect them by each other , how can make this button active to open another project or specific CMD ?????????

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

Post to forums  

Forma Design Contest


Rail Community