Browse By Tags

  • Applying transform through EditElementHandle causes Element descriptor to change

    Hello, I have a following problem: weird behavior is happening on Opencities (link to question, https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/238486/changing-scale-of-a-cell-causes-the-subelement-line-linestyle-scale…
  • [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…
  • Get StringList from mdlStringList_loadResourceWithType

    Hi all, MicroStation Connect Update 13 Version10.13.00.48 I am doing some programming in C++/MDL. I want to change some linestyle names in resource files programmatically. With the function mdlLineStyle_nameGetStringList there is the…
  • Scale all elements in model by 25.4

    I'm using Microstation Connect Update 10 and I'm trying to modify a dgn file(not the active file) and then save it as a dwg file for our cnc operations. Part of the modifications include dropping all the cells and complex elements to geometry, deleting…
  • [C++ MDL Connect] Questions regarding native MDL

    Hi all, I have been experimenting building a native solution and have a few questions, hopefully someone might be able to give some advice to save me pulling any more hair out! Is it possible to build a CLR class library and load that in Microstation…
  • [MSCE U16 C++] change Element color to Colorbook Color.

    Hi Guys, I neet to set the color of an Element to a the color CLASSIC 840-HR:6006. At the moment I'm only capable of passing a Color Index to the element using the Code: DgnFileP activeDgnFile = ISessionMgr::GetActiveDgnFile(); ColorBookPtr…
  • [MSCE C++] mdlWorkDgn_createFile 函数创建文件报错

    for (int i = 0; i < 10; ++i) { printf("i:%d\n", i); // 新建的模型 DgnModelRefP seedModelRefP = ACTIVEMODEL; DgnModelRefP newDgnModelRefP = NULL; WChar* savePath = L"d:\\a.dwg"; StatusInt status = mdlWorkDgn_createFile(&newDgnModelRefP, savePath…
  • [CONNECT C++] What are the mdlTable_* and mdlTableEntry_* replacements?

    Hello, In V8i we used to use the mdlTable_* and mdlTableEntry_* functions, all from the table.fdf. In the CONNECT Edition (Update 14) these general functions are missing. In what way can we achieve the same functionality? mdlTable_addEntryDescriptorToChain…
  • [Connect C++ Update 16] Using Visual Studio 2019

    Hi All, I was hoping to get started with C++ MDL development and didn't have the hard drive space or desire to uninstall my current devenv (VS2019 Pro) and then have to reinstall VS2017 along with all the same features / extensions... so long story…
  • [Connect update15 c++] Example set missing files, where can I download complete set?

    I am going through all the examples under the bentley's example folder. I encountered several instances where there are files missing. There are others missing .cpp files and ones I have no idea what is missing. Some examples either don't work or…
  • OpenCities Map Advanced crashing after opening chart and changing model

    Hello! This week I found strange behavior in our plugin running on OpenCities Map Advanced 7. I´ve been trying to pinpoint the cause of this behavior and find out why is it happening. However, I got unlucky and decided to ask for some help here. …
  • Saving a custom variable inside a DGN file, so I can read it later during the opening [Microstation V8I MDL API]

    Hello everyone! I´m currently developing a little mechanism to do checks on my DGN files, and I would like to save a variable value (for example bool) into a DGN file. I mean like, value of my variable will be persisted with the DGN file itself. So…
  • 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.…
  • Ways to deploy my DLL to Microstation MA file

    I am trying to find a way to deploy my dll built in c++ to my microstation application. Could you please suggest the steps to deploy it and convert to microstation ma and dll file? I am using Micrstation v8i SS6.
  • Assistance with Creating Custom DLL Function to Call from MVBA

    Hello, I am attempting to upgrade an older V8i .MA macro so that it can be used with MicroStation CONNECT. Before diving into the specific details, here is a summary of my software and computer information. MicroStation CONNECT Edition - Update…
  • 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…
  • MDL .ma to Native code: setup and updating an old MDL application to native code/VS for v8i SS10

    Hi all - the new year's come around and we've got some new requests from our Engineering group that need to be addressed. The biggest one is an update to an automation program that was written in MDL and limped along in the old environment through v8i…
  • [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…
  • [C++ MICROSTATION CONNECT U15] issue with mdlMinDist_betweenElms since UPDATE 15

    Hi everyone, When we migrate our application from V8i to connect we found the mdlMinDist_betweenElms dot does not work as intended. in V8i we use mdlMinDist_betweenElms for example a cell and a line, but since CONNECT it does not work anymore. So…
  • Custom move element tool is not fast as the built-in Microstation "Move extended" when hundreds of elements are manipulated[V8i MDL]

    Hello! It´s me again, with a question. I´m currently working with a Microstation V8i SS4 version, where I needed to add my own functionality to the move tool, so I´ve decided that I will implement myself it with MDL API, as VBA didn´t offer me the things…
  • add a reference that should be translated and clipped

    How exactly can i get the modelRef after begin attachment ? I'm trying with: modelRef = builder.GetDgnAttachmentCP()->GetDgnModelP(); but the reference is not translated nor clipped, so i suppose that's the problem (the only difference from v8i…
  • How to activate particular parametric set/variation?

    Microstation Connect Edition Update 14 - C++ Native - SDK In a particular model, I have added one variation/Parametric set using API - (IDgnComponentDefinitionModelHandler) -> CreateParameterSet(). I have also created associated variables with this…
  • 【MS CE updt13 C++】放置sharedcell的问题

    我自己绘制了一个椭球体作为一个shared cell元素放在一个cel文件的model中,。 新建一个dgn文件,我打算使用mdl函数: mdlSharedCell_create,mdlSharedCell_makeSureDefExists,mdlSharedCell_setRange等将这个cel放置在我新建的dgn文件中; 我发现处理二维的cell元素都没问题的,处理三维的cell元素;画不出来对应的椭球体cell元素;全选发现有元素个数,但是fitview没有元素显示;使用MS自带的工具就不能放置地层界面点或者构造点shaerdcell…
  • [MSCE C++] 请问怎么从ElementRef或者EditElementHandle 查找这个元素属于哪个参考文件,从而获得参考文件的Transform

    已经找到答案,解决问题了,谢谢!