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)
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.
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