Browse By Tags

  • [C++] 请问下建筑设计 修改 删减实体 这个功能是否有对应的接口。目前是需要对墙上部进行裁剪处理,用solid处理裁剪的话会缺失墙信息

  • [Connect Update 17 C++] Get object coordinates in the correct units

    Hello guys, I have a little question about the units that MicroStation uses to return the coordinates of objects through the API. In my add-in, I try to implement some code that will return the position of the camera in the active view. I use the…
  • [Connect C++] Looking for example of using ApplyViewOptions Struct Reference

    Hi all, Where can I find examples of using ApplyViewOptions Struct Reference? Thank's for your help Hervé
  • [CONNECT C++] MicroStationAPI Documentation: NEEDSWORK_VANCOUVER_DOC

    Many StateFunc_ functions have incomplete documentation. For example... typedef void(* StateFunc_DragInit)(DPoint3dCP point, int view) UserFunction called when NEEDSWORK_VANCOUVER_DOC. Parameters [in] point NEEDSWORK_VANCOUVER_DOC [in] view NEEDSWORK_VANCOUVER_DOC…
  • 在点已知的情况下,创建shape失败

  • [MC C++]bmake添加修改编译命令选项

    [MC C++]如何更改bmake,使得能够更改cl的编译命令选项, 比如添加“/clr”编译选项或者修改已有的编译选项
  • 【MSCE C++】如何在DItem_PushButtonRsc上设置鼠标悬停提示

    请问如何能在DItem_PushButtonRsc上设置鼠标悬停提示
  • 老师们好,我想系统学习下二次开发中如何对元素进行平移旋转操作,有什么教程吗

    如图 想将以上矩形里边的所有元素按顺序拼接成一条和x轴平行矩形,需要用到哪些函数呢
  • [CE U17 C++] Create a cell from a zero-length line and past a few copies into the document

    Hi guys. I have some test code that creates some count of zero-length lines with some size, color and random coordinates: ISessionMgrR sessionMgr = ISessionMgr::GetManager(); DgnModelRefR model = *sessionMgr.GetActiveDgnModelRefP(); DgnPlatform:…
  • [CE U17 C++] Create a POD file with a custom point

    Hello guys. I want to create my custom POD file with the custom point. And I found a few examples of how to do it with a PointCloudPodWriter. But at the end of the process, I got an error. It has code 32768. It's a general code of ERROR. But what reason…
  • 获取geometry信息

    【MS C++】如何根据elementID获取元素的位置信息(geometry),不同的元素的获取方式是一样的吗
  • [C++ Connect] GetRaster file exists check

    I am trying to determine if the file name returned from GetFilespec() exists. Is there a method within here to quickly check whether the file actually exists? while (NULL != (modelRef = mdlModelRefIterator_getNext(iterator))) { for each(DgnRasterP…
  • mdlVersion_getVersionNumbers() gives the wrong subMinor number

    I think this function is giving incorrect results for the subminor version. On MicroStation v10.17.02.61 the VersionNumber struct shows: release = 10 major = 17 minor = 02 subMinor = 450 Similarly on MicroStation version 10.17.01.62 it reports as…
  • Write an OpenSTAAD Program in VS C++

    I want to learn to write an OpenSTAAD code in Visual Studio 2023 C++. I followed the steps as listed in STAAD.Pro Help OpenSTAAD. The code given by Bentely is look like: #import "C:\Program Files\Bentley\Engineering\STAAD.Pro CONNECT Edition\STAAD\StaadPro…
  • [MSCE C++]剪切实体遇到一个无法剪切的问题,没有提示也没有成功。

    我用SolidUtil::Modify::BooleanCut一条直线裁剪一个智能实体没有成功,然后我把过程实体添加到模型中,用软件自带的剪切也无法剪切,需要特定的长度才能剪切,450m不可以,460m可以。请教老师这个问题有没有解决的办法。 6012.test.dgn
  • [MSCE U13 c++] mdlPop_elementDescrFromElementDescrDifference有时候会崩溃,有什么办法能捕捉这个错误吗?

    这个函数不是太稳定,有时候会崩溃,有什么trycatch方式能自己捕捉错误吗?
  • [C++/C# MSCE10]如何知道一个curvevector是否自相交

    已经获得一个curvevector,可能是通过剪切,偏移等操作获得,(offset偏移特别容易出现)这种情况下如何知道这个curvevector是否自相交。如果自相交了,怎么处理能清理掉自相交的部分,比如一个线打了一个结,这个结怎么去掉呢。 假如一个获得一个线串(获复杂链),怎么能判断线串是否有点回折,(类似前进后退前进这样)这种情况下,线串看起来是正常的,其实是个自相交的线串。
  • 【MSCE U13 c++】 如何加厚mesh面成实体?

    如题,这个mesh面是一个地面的mesh,并不是包裹成封闭壳的。
  • [MSCE U13 c++] 根据横截面loft之后生成的物体不保持原有横截面?

    如DGN里面的物体所示,横截面和loft body的端面不是重合的。 用的方法是SolidUtil::Create::BodyFromLoft(out, cveVecArr, 2, NULL, 0, *ACTIVEMODEL)。其中传入 cveVecArr的是两个横截面,横截面是由线段串起来的,上下一共做了两次loft,生成两个loft体。 我试了一下,这个函数结果跟手动工具结果是不一样的。手动工具给出的是正确的结果。
  • [MSCE U13 c++] 为什么mdlElmdscr_fillet 产生的圆弧并不处于和两条交线一个平面的?

    如题 3d空间中相交的两条线。 函数产生的结果
  • 【MSCE U13 c++】 为什么创建的linestring没法拉伸成体?

    我使用代码创建的linestring curvevector没法拉伸成体,发现MS里面操作也是同样的问题。 5861.ItemTypeExperiment.dgn
  • How to use aaApi_StartPartnerApplication ?

    Hello, I am looking for a solution to view a dgn document from ProjectWise CONNECT Edition (3.299) into Microstation CONNECT (Update 17) without checking out the document, but still be able to modify or add references to the opened document in Microstation…
  • [MSCE U13 c++] 元素没法转成mesh元素

    都是用同样的loft方法构建出来的,但是方体可以转成mesh元素,而梯形体不行?
  • 【MSCE UPDATE 17】安装最新的MS 以及SDK以后,我之前编译的程序加载的时候都提示不信任

    排查发现目前MS update17版本的BentleyGeom5.dll中的ExtractBoundaryString函数跟update 17 的SDK 中BentleyGeom.lib文件导出的ExtractBoundaryString函数不一致。导致我们如果引用这个文件的话,会出现自己编译的dll不能加载到MS中。如下图所示 ...
  • [MSCE U13 c++] 为什么地形和mesh体相减总是只有mesh体内部的部分?

    用代码创建一个网格体,让体去切地面网格,结果是地面网格消失,只留下网格体内部的部分 手动也是同样的结果。