Has UserInterfaceManager::CommandBars been silently obsoleted?

Has UserInterfaceManager::CommandBars been silently obsoleted?

Anonymous
Not applicable
550 Views
2 Replies
Message 1 of 3

Has UserInterfaceManager::CommandBars been silently obsoleted?

Anonymous
Not applicable

I'm implementing an addin and the following code from one of the API samples references it but I cannot find anything about the collection in the API documentation for Inventor 2013 not even as Obsoleted member.  Is the Classic Interface nolonger supported by 2013? if so when did it become unsupported?

 

                'Add the button to the part features toolbar

                Dim userInterfaceMgr As UserInterfaceManager

                userInterfaceMgr = m_inventorApp.UserInterfaceManager

 

                Dim interfaceStyle As InterfaceStyleEnum = userInterfaceMgr.InterfaceStyle

 

                'Create the UI for classic interface

                If interfaceStyle = InterfaceStyleEnum.kClassicInterface Then

 

                    'Get the commandBars collection

                    Dim commandBars As CommandBars

                    commandBars = userInterfaceMgr.CommandBars

 

                    'Get the part features toolbar

                    Dim partFeaturesToolbar As Inventor.CommandBar

                    partFeaturesToolbar = commandBars("PMxPartFeatureCmdBar")

 

                    'Add the "Rack Face" button to the toolbar

                    partFeaturesToolbar.Controls.AddButton(m_ProcessBOMCmd.ButtonDefinition, 0)

 else
.....ribbon code
end if
0 Likes
551 Views
2 Replies
Replies (2)
Message 2 of 3

philippe.leefsma
Alumni
Alumni

The Ribbon interface was introduced in Inventor 2010 and since then the classic UI and it's API has been declared deprecated. API support for it has been removed in Inventor 2011 if I'm correct.

 

Sorry for that bad news.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

Message 3 of 3

Anonymous
Not applicable

Thank you.  That isn't a problem it just makes the decision to not support the legacy interface that much easier.

 

However references to it should be removed from the Addin Samples that ship with the SDK it just makes things confusing.

 

Regards

 

Corey2

0 Likes