« Document Modification in an Event | Main | Selecting Model Elements »

May 18, 2009

Comments

The rumours are spreading that you can turn the new UI off and have the old one, If only I knew how

See:
http://architechure.blogspot.com/2009/06/nein-nein-nein-nein-nein-nein-nein.html

And
http://forums.augi.com/showthread.php?t=92112&page=20


Dear Anthony,

Thank you for the pointers. I was not aware of this possibility before, so I cannot provide any additional advice. Very interesting, however.

Cheers, Jeremy.

Dear Mr. Tammik, thanks for this post, it was very usefull for my job...
I have only one question to ask you. Could be possible to add an horizontal separator in a PullDownButton object, for example in yours pulldownMoveWall object?

thanks again
Martino

Dear Martino,

Looking through the Revit ribbon bar, I cannot see a single example of such a horizontal separator. Therefore, I would say that even if you could insert such a thing, I would recommend you not to do so. But of course the API does not provide this possibility anyway. Basically, the example above demonstrates everything that can be done. The AddSeparator method adds a separator, and it is vertical. To my knowledge, horizontal separators do not exist in the ribbon.

Cheers, Jeremy.

Dear Mr. Tammik, thanks for your answer. I post you this question because I saw the Revit Ribbon pulldown button relative to the add new wall, for example, where there is also an horizontal separator, so I thought that it was also possible with the API.
But if it doesn't I will find another way...
Thanks
Cheers, Martino.

Jeremy,

I have the same question. There is a horizontal separator button in a PullDownButton. See Home tab, Component pulldownbutton or Model Group pulldownbutton.

How can we do this?

Regards,
Nadim

Dear Nadim,

As I said above to Martino, as far as I know, the API currently does not provide this possibility. Basically, the example above demonstrates everything that can be done with ribbons through the API. The AddSeparator method adds a separator, but only a vertical one.

Cheers, Jeremy.

Here's a good question. Does the API support a method to add an Extended tool tip? The regular text tool tip is nice, but the Interface shows it's own commands using an extended tool tip for the user that contains a help file like image and text snippit. Can this be done in 2010?

Dear Jamie,

Sorry, I have not seen anything in the Revit API supporting that.

Cheers, Jeremy.

Hi Jeremy,
Iv'e got problems when I create a PulldownButtonData.
It is grayed out...do you know why.
When I create separated PushButtons, it works....

Cheers!

Dear Pierre,

Are you talking about Revit 2010 or 2011? In 2011, I have not really had a look at that area yet, so I don't know what the problem might be. In 2010, there has been some discussion on the topic of greyed out commands now and then, which we summarised in

http://thebuildingcoder.typepad.com/blog/2009/06/rfa-version-grey-commands-family-context-and-rdb-link.html#2

Jean-François Breton added some explanations to the comments there as well.

Furthermore, Mr. Navarra already asked this question repeatedly:

http://thebuildingcoder.typepad.com/blog/2009/10/revit-2010-web-update-2.html

http://thebuildingcoder.typepad.com/blog/2009/04/addin-keyboard-shortcut.html

Are you still stuck with that? How terrible!

Cheers, Jeremy.

Is it possible to add Ribbon elements to an area other than the AddIns area?

For example, can I add a DropDown or similar simple UI element to the INSERT or HOME ribbon?

Thanks,

MarcG

Dear Marc,

Thank you for your query. Please do not double post queries to both the blog and the ADN DevHelp Online, since that causes extra work for us. As an ADN member, I would recommend that you use ADN DevHelp Online, since that guarantees you an answer from either me or one of my colleagues in the AEC workgroup. It also assigns a case number which makes it easier to coordinate with our internal knowledgebase and other databases.

Regarding your question, add-ins are indeed restricted to adding controls to two of the ribbon tabs: the Add-Ins and the Analyse tabs. Here are some quotes from the developer guide "Revit 2011 API Developer Guide.pdf" regarding this:

- 3.2.1 Loading and Running External Commands: You can add External Commands to the External Tools Panel under the External Tools menu-button, or as a custom ribbon panel on the Add-Ins tab.

- 3.8 Ribbon Panels and Controls: Custom ribbon panels will appear on the Add-Ins tab in Revit by default, but they can also be added to the Analyze tab.

- 3.8.2 Ribbon Panel: Custom ribbon panels can be added to the Add-Ins tab (the default) or the Analyze tab.

To add a panel to the Analyze tab, use the CreateRibbonPanel method overload taking an additional Tab enumeration argument.

Cheers, Jeremy.

Hi Jeremy,

I had developed a ribbon panel under Add-Ins Tab. which is used to Export the current File to IFC Format. (Overriding Default IFC Export Functionality). My Problem is, when I open and Advance Sample from Revit Start-Up Menu, My Add-Ins gets disabled. I am using .Net 4.0 and Revit 2012. Could you pls guide me on possible solutions.

Thanks,

Hardik

Hi Jeremy,

To explain the above scenario....when I open any file and goes to View Menu -> 3D View -> Camera and creates View using Camera....at that time Revit disables the Add-Ins Panel and My Add-Ins gets disabled.....while I can still export the same view using IFC Option from Menu. Could you please help in this.

Thanxs

Hardik

Hi Jeremy,

still waiting for your response. If you are able to guide me on this it would be great. Thank you

Dear Hardik,

There is never any guarantee whatsoever that I will ever respond to any comment.

However, in this case, I already have, several times :-)

The default view of the advanced sample is in perspective mode. All add-ins are disabled in persepctive views.

There are a few conditions where the Revit API framework always prevents commands from being available:

- Another Revit command is active.

- The active view is in perspective mode, or when the view is a Legend, Walkthrough, Material Takeoffs, Drawings Lists, View Lists, Note Blocks, View Lists, etc.

- The user is editing an in-place family.

I mentioned this fact a couple of times in the past, most lately a while back, in May 2010, in

http://thebuildingcoder.typepad.com/blog/2010/05/addin-visibility-mode.html

Cheers, Jeremy.

Dear Jeremy,

Thanks for your reply. Its useful.

Cheers, Hardik

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Your Information

(Name and email address are required. Email address will not be displayed with the comment.)

Jeremy Tammik

AboutTopicsIndexSource