概述

自定义Ribbon界面是为了给用户提供一个友好操作窗口,用户可以点击图标调用对应的命令。实现这 个效果需要实现:1.制作一个界面的*.dgnlib文件。其中DGN文件要和程序命令匹配。2.拷贝dgnlib文件到 对应的位置让程序可以自动加载。

2.导入界面需要的图标 图标尺寸最大32x32



3.制作Ribbon界面
参看Bentley的操作手册
https://communities.bentley.com/products/microstation/b/microstation_blog/posts/customizationblog-series-customizing-the-ribbon—-blog-1-of-4
https://communities.bentley.com/products/microstation/b/microstation_blog/posts/customizationblog-series-customizing-the-ribbon—-blog-2-of-4
https://communities.bentley.com/products/microstation/b/microstation_blog/posts/customizationblog-series-customizing-the-ribbon—-blog-3-of-4
https://communities.bentley.com/products/microstation/b/microstation_blog/posts/customizationblog-series-customizing-the-ribbon—-blog-4-of-4
4.保存自定义Ribbon界面
将C:\Users\Lenovo\AppData\Local\Bentley\MicroStation\xxx\prefs\Personal.dgnlib拷贝出来并重新
命名程序需要的名字如xxx.dgnlib。
5.恢复自定义界面

程序自动加载界面
1.进入WorkSpaces目录,查看GUI加载路径.

2.拷贝xxx.dgnlib到对应目录下

网友评论