随笔分类 -  Revit 二次开发

摘要:需要下载Windows API Code Pack dll库 建立C# wpf项目,引用WindowsAPICodePack.Shell 界面放置一个img容器 <Image x:Name="image"></Image> 代码 string str = @文件路径; ShellFile shell 阅读全文
posted @ 2017-03-28 10:20 苏州城外的微笑 阅读(1561) 评论(0) 推荐(0)
摘要:通过委托实现点击选项卡后禁用选项卡功能,关闭功能后启用选项卡功能 在A项目中定义一个RightMenuFunctions类 在TheCommand,execute中 定义InFunCtions方法 定义禁用选项卡方法 在A项目MainWindow中添加Closing事件 阅读全文
posted @ 2017-01-11 18:13 苏州城外的微笑 阅读(662) 评论(0) 推荐(0)
摘要:项目下找到TheApplication.cs,更改内容: class TheApplication : IExternalApplication { public Result OnStartup(UIControlledApplication a) { RibbonPanel ribbonPane 阅读全文
posted @ 2016-08-02 17:31 苏州城外的微笑 阅读(1098) 评论(0) 推荐(0)