Browse By Tags

  • 参数化实体与智能实体的连接材质获取

    在参数化实体与智能实体两种实体的 连接材质 和已分配材质相同的情况下,使用_AnnounceElemDisplayParams获取材质,参数化实体获取的是已分配材质,而智能实体获取的是连接材质,请问要如何做才能使参数化实体也获取连接材质?
  • Has anyone ever successfully used the << mdlVBA_runProcedure >> function? [MicroStation CONNECT C++]

    I am using MicroStation CONNECT 10.16.03.11. Has anyone successfully used this mdlVBA_runProcedure to call a subroutine in a MVBA file? For example if I had these MVBA settings: Project Name = TEST Module Name = MAIN Subroutine = Apple …
  • [MStn CE 16 C++] Is there a way to programmatically get the user preference for "Use Color Table"?

    Hi, I have a tool where I need to know if the color table used is coming from the mater file or the reference itself. Is it possible to find out the user preference setting for this? Thanks, Briant
  • 使用DgnPrimitiveTool的__OnDataButton()函数实现相应的功能的时候,获取点为什么会报错呢?

    在DPoint3d strP这段代码一直报错 但是当调整代码的位置 不改变代码的时候 又可以成功运行 这是什么原因呢
  • [CE 17 C++] How to disable/enable the button on my custom ribbon?

    Hi, I'm developing the add-in for MicroStation. And my add-in has a custom ribbon. This ribbon contains a few buttons. And I'm interested in how can disable/enable some of them based on some property/method in my C++ code. My ribbon was created in…
  • [C++ CE 17] Is it possible to define a camera type via the API?

    Hi, I'm interested is it possible to define a camera type via the API? As I understand the camera in the MicroStation can have a few different types - perspective and parallel. Also, the perspective camera has their types - one-point, two-point, or…
  • [Connect C++] How to change the size of text element in annotation scale

    Hi all, I would like to developp the same functionnality as we can do with the property dialog of the model. I would like to change all the text defined in annotation scale by changing the annotation scale of the model. Here is my code to change the…
  • 删除元素调用回调函数进行处理

    老师好, 问题如上, 我之前看了这个博客https://communities.bentley.com/communities/other_communities/chinafirst/f/microstation-projectwise/230386/msce-c-dgn,但是还是不会这个回调函数应该怎么写,请问有相关的实例吗?
  • [CONNECT C++] NamedBoundaryGroup Type

    Class NamedBoundaryGroup has properties Name , Description and Type . Name and description have getters and setters, but Type has only a getter ( WString NamedBoundaryGroup.GetType() ). However, there's no way to set the Type of a NamedBoundaryGroup…
  • 怎么去修改当前元素的依赖

    老师,我需要将当前的元素的依赖的元素修改成为另一个元素。请问有什么方法吗 我添加依赖的代码如下 DependencyLinkage depLinkage; if (SUCCESS != DependencyManagerLinkage::GetLinkage(nullptr, *elementToModify, SIGNATUREID_DependencyRebarEndDevice, DependencyRebarEndDevice_value)) { if (SUCCESS…
  • [PS C++\C#]二次开发能获得出图时的那张形状图片吗?

    PS出图时候的那张标注了尺寸信息的图片,目前SDK中有接口可以得到吗?C++或者C#都可以
  • [PS C++]SDK示例通过黑窗口启动VS失败

    SDK示例通过黑窗口启动VS失败,提示无法打开vfprojcommon.mki文件,我电脑上没有这样一个文件,是不是MS和PS的SDK必须版本匹配才行?我MS是10.16.2.34,PS是10.7.2.33
  • 钢筋合并

    两根钢筋被切断,怎么才能实现将这两个钢筋合并成一根呢
  • [CONNECT C++] Example of SQLite

    The C++ MicroStationAPI provides an interface to SQLite . For example, BeSqlite.h . There is no example of SQLite, unfortunately. Would somebody like to write one?
  • 怎么实现参考文件和当前model合并

    //增加套筒 传入的点为钢筋的中心点 StrP是钢筋的开始点 配合钢筋切断使用 void RebarAddCoupler::AddCoupler(DPoint3d const& Point, CouplerType shape, DPoint3d const& StrP, DPoint3d const& EndP /*, double Dim*/) { CreateModel(shape); //获取元素的比例因子 这个通过钢筋直径进行判断 double dScale = AnchorSlabAttachement…
  • 旋转矩阵问题

    怎么通过代码来实现,当前的model和横向的线的中心点位置套接.
  • DisplayRule 设置为 无

    如题,请问各位老师,如何用代码或keyin将 显示样式中的 DisplayRule项设置为 (无) 。谢谢。
  • [CE 17 C++] Freeze graphic area during some operations

    Hello, Is there some way to freeze the graphic area in the MicroStation in all views during some operations? For example, let's imagine that I try to build some body. This body will include a few body operations, like extrude, cut, bool, etc. But…
  • 参考模型跟随鼠标移动

    老师,我实现了从一个dgn文件中读取model到另一个dgn文件中成为参考模型,我需要通过怎么样的设置来使得这个参考模型随着鼠标的移动呢? 我的代码如下: 其中SetPreLocalFunction是参考郭老师的回复的一个帖子进行改写的,当我点击模型时,参考进来的model还是出现在坐标原点。 不是跟着鼠标键进行移动的 //从D盘中读取参考文件模型 WString fileName(L"D:\\RebarAddCoupler.dgn"); WString Path(L…
  • 怎么将一个dgn文件中的model拷贝到另一个dgn文件中的model中去

    求助
  • 钢筋加套筒

    请问老师,有没有在一根钢筋上面添加套筒的参考代码进行学习
  • 如何将参数化实体转换为智能实体

    如题,如何用C++将参数化实体转换为智能实体,最好提供一个示例程序,谢谢。
  • bmake编译错误

    通过bmake -dIDE RebarSDK.mke文件 之后直接报错找不到头文件#include <RebarElement.h>
  • 两个DGN文件中的模型,怎么通过代码将其拼接起来

    老师好,我在一个dgn文件中锚固端板模型可以和第二个文件中的钢筋模型锚固在一起,怎么实现我从钢筋模型中读取到锚固端板?
  • [CE 17 C++] Change camera type

    Hello, Are there some methods that I can use to change the type of camera projection in the active view? I mean the type described in the list of "Define Camera" dialog: By default, in the new document, the camera has the "Parallel" type. But…