我找到了很多例子,如何为AutoCAD 2010 - 2016创建新标签。2009年没有任何内容。 功能区面板首次出现在AutoCAD 2009中,然后它发生了很大变化! 例如:
...
Autodesk.Windows.RibbonControl rbCtrl = ComponentManager.Ribbon; //doesn't work, coz ComponentManager is not exist in Autodesk.Windows
...
rbPanelSource.Items.Add(comboBox1); //doesn't work, coz Items has no Add method
...
/*Even example from ObjectARX 2009 doesn't work, coz haven't Ribbon in Autodesk.AutoCAD namespace*/
ribbonControl = Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet.RibbonControl;
我不明白,在哪里可以找到正常的工作示例或文档。
答案 0 :(得分:2)
Appologies,有一个带有2009 SDK的Ribbon API。 您必须引用AcRibbon.dll和AdWindows.dll才能使用:
var ribbonControl = Autodesk.AutoCAD.Ribbon.RibbonServices.RibbonPaletteSet.RibbonControl;
答案 1 :(得分:0)
据我所知,Ribbon .NET API只能从AutoCAD 2010 SDK中获得。