Browse By Tags

  • [PS C++\C#]二次开发能获得出图时的那张形状图片吗?

    PS出图时候的那张标注了尺寸信息的图片,目前SDK中有接口可以得到吗?C++或者C#都可以
  • [C++/C# MSCE10]如何知道一个curvevector是否自相交

    已经获得一个curvevector,可能是通过剪切,偏移等操作获得,(offset偏移特别容易出现)这种情况下如何知道这个curvevector是否自相交。如果自相交了,怎么处理能清理掉自相交的部分,比如一个线打了一个结,这个结怎么去掉呢。 假如一个获得一个线串(获复杂链),怎么能判断线串是否有点回折,(类似前进后退前进这样)这种情况下,线串看起来是正常的,其实是个自相交的线串。
  • 用keyincommand打开一个winform窗体,如果重新执行keyincommand,会打开一个新的窗体,老的窗体不会自动关闭

    如何在打开新的窗体时关闭老的窗体呢?
  • 如何在小程序中执行keyin

    我想在小程序运行的过程中执行某个key-in命令:mdl load xxx,如何实现呢?我看UserKeyinXCommand好像没有什么介绍,还是说不是这个接口? 比如说c++ mdlMain(){ run(L"mdl load xxx");} 或者C#中有这样的接口吗?
  • 使用DimensionElement 创建标注,“R”标识前缀如何去除?

    DimensionElement de = new DimensionElement(dgnModel, callbacks, DimensionType.RadiusExtended); 如上创建半径标注,创建成功后的标注线上都有一个“R”的标识,用TextReplaceStatus ReplaceTextPart(TextPartId partId, TextBlock textBlock)去替换了文本内容,可是“R”标识依然在前,请问老师这个"R"怎么去除?
  • Is APM based on Java?

    User is making an analysis which applications are based on Java/Oracle. Is APM based on Java?
  • [C# PW] Workflow Rules Engine API - Syntax error?

    Hi all, I have been attempting to push a document to a different state using the aaApi_WREDoExecute method listed in the API. Everything seems to be working to a certain degree, except the response I get is: "Execution command identifier '{urn:bentley…
  • DanWilliamsAtBentleyDotCom on GitHub

    The samples that were located at https://github.com/DanWilliamsAtBentleyDotCom have been copied to Product Communities > Developers and Programming > ProjectWise Programming > ProjectWise Programming - Media Gallery located at https://communities…
  • [Connect WMS C++ Or C#] Handle login / password for WMS

    Hi everyone, In 2017 when i tried to use WMS in microstation there was no API. So i created an object that can generate the xwms file and then with raster manager API , i attached this xwms file to MS. Today we have more and more cyber security contraints…
  • [ord UP7 c++/cli]如何获取1-8号视图中,哪些是打开的

    请老师们指导下哈
  • [V8i] Add and Delete Design Links within a CellElement

    Hello, I want to create Design Links (not the ‘engineering links’) to some Elements that are in a CellElement. Here in the forum I found just a command "ELEMENT CREATE LINK URL xxx" which is only working on a selected Element. Unfortunately I could not…
  • 【C# ORD中国版】Cim对象材质贴附问题

    我的需求是想给自定义的Cim对象贴附材质,但在论坛里查了一下,C#下材质功能不完善,建议使用C++。 我的材质贴附需求很简单,就是简单的将某个元素设置为某个MS自带的材质即可,我尝试了使用C#下的MaterialPropertiesExtension功能,但是没有设置成功。 我还尝试了使用EC的方式设置Cim对象的属性,是可以在第一次将Cim对象AddToModel的时候生效的,如下图所示。 但是当我通过改变某个属性值导致Cim对象重绘时,之前设置的对象的“连接材质”属性没有变,但是对象实际显示的材质就没有了…
  • 【C#/C++ ORD】如何获取加载当前插件dll的ORD版本号

    问题如题目所示,目的是根据不同版本的ORD调用不同签名的方法。 MS的SDK中提供了一个C++方法:mdlVersion_getVersionNumbers。但是该方法在MS可以获取到正确的版本号,但是在目前ORD中国版中,获取到的是ORD中带的MS的版本号10.14,无法获得ORD的版本号10.09。 请问还有什么方法可以获取到ORD的版本号吗?C++或C#的方法均可。 我目前想到的方法,是通过反射获取到调用插件dll的ustation.dll的地址,在该地址下查找OpenRoad开头的exe程序…
  • [CONNECT UPDATE 15 C#/C++] Attach reference with Geographic Reprojected orientation

    Hello, I need to attach reference with Geographic Reprojected orentation via C# or C++ code. I searched forum but I did not found any help for C#, C++ had some ideas like mdlRefFile_beginAttachmentToModel into mdlRefFile_setIntegerParameters(31, REFERENCE_ATTACHMETHOD…
  • how to render solar light shadow to dgn file

    hello, i'm studying how to generate shadow of a solid exposed by solar light. i have got the interface of the default solar, and createed a new one to adjust some parameters, while i cant find the shadow in dgn file. i guess the shadow isnt rendered…
  • 【MS v8i c# c++】如何切换V8i的工作空间的project

    v8i如何实现在打开dgn文件之前,切换到正确的工作空间。 像CE下的有workspacemanager能做到切换workset,那么如何在v8i下实现切换project呢?
  • [MicroStation C++/C#] microstation自带的平移复制工具是否可以重写?

    各位老师: microstation自带的平移复制工具是否可以重写? 模型创建后并将放置点坐标写入EC属性中,目前想通过编程 使手动拖拽或者平移复制等工具操作后 能够对模型EC属性进行修改...请问各位老师该如何处理呢?
  • [8i SS10 ] [C#/C++] probleme with MS_ADDIN_DEPENDENCYPATH

    Hi everyone, I have C# dll call from C++. My c# dll need some other c# dll. If i put all dll c# needed in the ustation.exe folder everythings works. But i put in an other foler and use MS_ADDIN_DEPENDENCYPATH to target the new folder it does not…
  • [MSCE U14 C++, C#] DgnEC Instance and Relationship Change Events

    Introduction With Microstation CE U14, we are introducing a way to listen to DgnEC instance and relationship change events at both Native DgnPlatform and Managed DgnPlatformNet layers w.r.t. the following interfaces: Bentley::DgnPlatform:: IDgnEC ChangeListener…
  • [Connect U13] [C# | C++] mdlScanCriteria_setXAttributeTest does not look into Cells

    I have a problem with the function mdlScanCriteria_setXAttributeTest mentioned by Yongan.Fu in this post: https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/115328/v8i-c-finding-xattribute…
  • [CONNECT] Get the Result of an Expression

    I have manually defined an Expression in an Item Type Property. The Expression is a simple arithmetic multiplication. When I look at an element's properties using the MicroStation Properties dialog I can see the result... The Expression in this example…
  • Some sample code for using C# with the ProjectWise SDK

    I posted some parts of these two sample customizations recently, but to make things easier for those looking for the full Visual Studio Projects, you can download the code from GitHub. First of all, you will need Dave Brumbaugh's MostOfDavesClasses, but…
  • Credential Expiration

    Hey all, I'm hoping someone can point me in the right direction. I have a window service that uses the projectwise APi to login, connect to a datasource, preform various operations to get data from projectwise, including copying files out of the system…
  • [CE U12 C# and C++] ElementScanCriteria -> MdlScanCriteriaP() return Value seems to be without reason.

    Hello :-) In V8 it works fine to use MdlScanCriteriaP() and to call mdlScanCriteria_setXAttributeTest(), since there seems no fitting method published in ElementScanCriteria. In CE the code will lead directly to an exception. BCOM.ElementScanCriteria…
  • [Connect | V8] [C# | C++ SDK] Finding Xattributes quickly and selectively, without the detour via "search element"?

    To work with Xattributes, you need an ElemendHandle whether you work in managed or native code. But what will be best practice to find some elements in such a case: DGN with some several thousand elements Some 3% elements with Xattributes …