请教:怎么样用CAD菜单调用C#生成的程序?
<p>我的问题是这样的.现在我用2007CAD和VS2005.我不知道如何让自己的用C#S生成的.DLL中的命令和主菜单关联起来..</p><p>有高手的指点一下....</p> private void addItemsToRivRoadPM(PopMenu pm){
MacroGroup oMacroGroup = new MacroGroup("myMenuGroup1", cs.MenuGroup);
MenuMacro oMenuMacro1 = new MenuMacro(oMacroGroup, "MenuMacro15", "getMidLine", "MenuMacro15", MacroType.Any);
MenuMacro oMenuMacro2 = new MenuMacro(oMacroGroup, "MenuMacro22", "FeatureMaunJoin", "MenuMacro22", MacroType.Any);
PopMenuItem pmi = new PopMenuItem(pm, -1);
pmi.MacroID = oMenuMacro1.ElementID;
pmi.Name = "获取中心线";
pmi = new PopMenuItem(pm, -1);
pmi = new PopMenuItem(pm, -1);
pmi.MacroID = oMenuMacro2.ElementID;
pmi.Name = "要素拼接";
} <p>多谢了,感激,还望以后能给予 更多的指点</p> 谢啦! <p>怎样用C#调用Addhatch()函数?</p><p>请高手指点</p> 在 “MenuMacro oMenuMacro1 = new MenuMacro(oMacroGroup, "MenuMacro15", "getMidLine", "MenuMacro15", MacroType.Any);”中的“getMidLine"是不是自己写的函数名称啊?<br/>
页:
[1]