Browse By Tags

  • 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
  • [Connect 17 c++] Differentiating between elements of the same type - Element type 106

    Hello, So when iterating over the current elements in the drawing file, I have both a Linear Solid/Parametric Solid and a point cloud, both these elements have the same type (106). Considering these vastly different elements have the same type, how…
  • 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…
  • 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…
  • [CONNECT C++] Problem using TagElementHandler to create a tag element

    I have installed: MicroStation CONNECT Edition 10.15.0.74 MicroStation CONNECT Edition SDK 10.16.02.022 See my test code snippet below. I am getting an exception when calling TagElementHandler::Create(). Stepping in the debugger I find that tagData…
  • [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…
  • 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…
  • [CONNECT C++ U16.2] Item Type iteration fails

    Hello all, I want to iterate over all Itemtypes in a all Libraries but I get an Memory Exception in the second iteration in following Code: try { ItemTypeLibraryPtr itemTypeLibrary = ItemTypeLibrary::FindByName(libName.c_str(), *ISessionMgr…
  • Event for export & Import of stp and igs file types

    We have developed a Native C++ application for MicroStation Connect Edition 10.15.02.11 Since we encrypt the exported files with .igs and .stp formats. While exporting a dgn to .igs or .stp file type, can we get any event to identify the process ? Similarly…
  • [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…
  • [Connect Up15 c++] Is it possible to click once to place element, pop up UI box, and second click to confirm modification?

    Hello all, I am practicing DgnElementSetTool So far I am able to use _OnDataButton() to place a element. I have the UI box pop up with start of command and could modify the element before I place it with a click. I use _OnDynamicFrame to show effect…
  • [connect update 15 c++ ] How to solve the error of duplicate rsc?

    MicroStation Resource Librarian 03.20.02 ### Error: Duplicate: File=(C:\Users\ADMINI~1\AppData\Local\Temp\Bentley\MicroStationSDK\objects\HelloWorld.rsc), TypeId=('str#') RscId=(1) ### Error: Duplicate: File=(C:\Users\ADMINI~1\AppData\Local\Temp\Bentley…
  • [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…
  • [MS Connect C++] How to launch the mdl command to place a note?

    Hello, I'd like to launch the placement command to place a note in my app With the V8i version, I do it like this: mdlInput_sendSynchronizedKeyinFrom(L"PLACE NOTE",true,INPUTQ_HEAD,NULL,FROM_KEYBOARD); This same line generates an exception in…
  • 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. …
  • Linear Patterning, Patterns not linked to original element.

    [CONNECT, Update 15, C++] Version: v10.15.02.11 OS: Microsoft Windows 10 Pro, Build 19042.1052, 64-bit Hardware: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz, 4.00 GB RAM, x64-based processor. I have a function which patterns a linestring drawn by the user…
  • Enable/Disable Ribbon Buttons using Named Expressions?

    Hi, I am working in MicroStation CE Update15. I need to enable /disable ribbon menu buttons based on a variable value. When i searched in community, many suggestions was can be done through "Named Expressions". Please provide me an simple…
  • Creating macro in c++

    Hi, I have to create a macro in MicroStation V8i (SELECTseries 10) in C++. C++ is not the issue, I already know the language but I haven't created a macro in MicroStation before. Macro Requirements: If I have multiple layers in a MicroStation…
  • 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.
  • 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…
  • How to Encrypt dgn file using externel dll?

    We have our own encrypt mechanism . We would like to implement it when save action triggers. Also we would like to decrypt it when open action triggers. We tried with Read and Write API hooking. But its not Succeeded. Is there any possible way to…