Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Has UserInterfaceManager::CommandBars been silently obsoleted?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
436 Views, 2 Replies

Has UserInterfaceManager::CommandBars been silently obsoleted?

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
2 REPLIES 2
Message 2 of 3
philippe.leefsma
in reply to: Anonymous

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
in reply to: Anonymous

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

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

Post to forums  

Autodesk Design & Make Report