Browse By Tags

  • [CE MDL/C++] Problems with mdlElmdscr_stroke

    Hi I want to stroke a complex chain element and into an array of points. In V8i I used the function mdlElmdscr_stroke: #define SCALE (mdlModelRef_getUorPerMaster(MASTERFILE)) if (mdlElmdscr_stroke(&pptdPts, &iVertices, pedCurve, 2.0 * SCALE) == SUCCESS…
  • [CONNECT Update 17 C++] MDL load error in MicroStation Update 17

    Hi! I have a native MDL application that runs perfectly in MicroStation Update 16, but in MicroStation Update 17 I get a MDL loader error 127 I'm using the latest MicroStation SDK when compiling the application. I have other native MDL application…
  • Changing linestyle of a single line in complex chain/complex shape

    Hello guys! After a long time of silence I came up with another question. I remember i had question similar to this behavior, but that was for V8I version. Lets say i have a complex chain consisting of multiple lines. Now i want to modify linestyle…
  • Setting up VS 2017 C++ project for debugging

    I'm trying to setup a vs 2017 c++ project to debug a MDL project I created with Microstation SDK Command Utility. I'm using Promis.e Connect Update 10 (Latest Build). I'm not 100% sure what version of Microstation that translates to, but the add-ins…
  • [MSCE 10.16 c/c++] How to define camera plane

    Hi , I'm writing an application that uses a camera that is modified (oriented) through user interaction, using mdlView_SetCameraParameters. So far so good, but by default focal plane is always perpendicular to camera axis, and I need to orient…
  • [CONNECT C++] What a substitute for tcb->directionFormat_deprecated ?

    I would like to toggle the file settings contained in the Bentley::DgnPlatform::DirFormat structure, but tcb->directionFormat_deprecated is not supported. Is there any way to modify the parameters in C++ or Key-In: DirFormat.baseDir DirFormat.flags…
  • [Connect C++ MicrostationApi] Create new Workset with the c++ Api

    Hello, I'm trying to create a new Workset in an existing Workspace. At the moment I can successfully load The Workset List of the existing Workspace. But then I don't really know how to proceed. The Code I tried is : //This is Working: DgnDocumentMonikerPtr…
  • [Connect Update 15 c++] Is there a way to draw a uneditable shape except through your UI dialog box?

    I want to draw a object and make it unable to be altered by other tools expect through the UI I provided. For example draw a box with a trailing line segement fixed at certain angle to the rectangle. I do not want anything including the size of the…
  • Get and Set ACS

    Hello, In the SDK is the example "ViewInfoExample". I build it, but it's not working correctly. If I change the Origin of the ACS in any View, the "View Info Description" doesn't show this change. Closing and reopening these windows doesn't help.…
  • Load MDL app on Application Startup (MS_INITAPPS)

    I am facing some issues in Successful loading MDL apps on Startup. I have modified code as below and loaded MDL app. if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0) { mdlSystem_enterGraphics(); mdlInput_sendCommand(CMD_DIALOG_OPENFILE…
  • [CONNECT C++] Editing a text element from its eeh

    Greetings, I'm currently struggling with some text modifications (C++ MDL, Microstation Connect Edition). I'm importing text elements from a DWG file into Microstation. I'd like to change some of their attributes before adding them into the DGN active…
  • Hook File Pre Open Dialog

    Hi, Is there a way to hook File Pre Open Dialog in Microstation CE Update 14 ? it seems that InputCallback::SetFileOpenDialogPreFunction is not defined in SDK Update 14 include files. in Microstation 8i this was done with mdlInput_SetFunction(INPUT_FILEOPENDIALOG_PREPROCESS…
  • TextBlock Enter-data-field in C++

    Hi, I am using Microstation Connect Update 12 along with the Update 12 SDK on Windows 10. The various components of TextBlock are difficult to understand without proper documentation besides MicrostationAPI documentation. Although we are going to…
  • 关于MS connected版本的渐变色填充

    MS ce版本开发,想对一个元素使用渐变色填充,比如使用彩虹色填充,在帮助文档中找到 AddGradientFill ( EditElementHandleR eeh, GradientSymbCR symb),这个函数,但是不知道这个函数怎么使用,关于 GradientSymbCR 的描述非常少,不知道里面的函数SetKeys()等怎么用。可否提供一段样例代码学习下?
  • 在Connect版本中ITransactionHandler怎么用?

    我需要在某些元素被修改或删除时激活一些操作,因此继承了ITransactionHandler类并重写了_OnModified() 方法,但是如何将 ITransactionHandler 注册并 Add 到元素上?在v8i版本中可以通过 IElementHandlerManager 来实现,但是Connect版本中 IElementHandlerManager 没有了
  • Custom Menu Item in CONNECT

    Hey everyone! So, I have a working MDL (written in C++) set up with Connect that provides functionality where I can intercept and basically override certain commands with my own functionality. In some cases, this functionality is launching an outside…