• ElementPreview C# Addin

    Hi all... I'm trying to render element into bitmap using following code, but with no luck. I'm getting exception Bad argument in method DrawToBitmap. I don't know what can be wrong.. any ideas? Or do you know another way how to get rendered preview…
  • [MDL] 保存视图时,视图中的参考模型没有被保存。

    若保存视图的model中有参考文件,而最终结果没有把参考文件中的元素参考过来,应该是哪里出了问题? 如下是相关的代码: void captureViewToModel(int viewIndex, const char* modelName, int viewType, int mapSize) { mdlView_updateSingle(viewIndex); //加载workspace/system ed下的ModelSeed.dgn作为seed DgnModelRefP seedModelRef…
  • RE: 【CE addin】获取外部dgn文件

    参考符工之前写的帖子 https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/152695/msce-c-u6-dgn可 以读取出来model
  • RE: 如何通过编程给MS添加主菜单

    还是上面给您建议的,事先将要添加的菜单或Ribbon界面定义在一个扩展名为DGNLIB的文件中。在安装包中将该文件复制到系统的DGNLIB文件夹下即可。 MicroStation在启动时中自动读取指定位置的所有DGNLIB,将各种自定义的东西加载进来的。