Browse By Tags

  • 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…
  • [U8 c++] Is there a way to cast RefCountedPtr <ParentClass> to RefCountedPtr <ChildClass> in MDL?

    Is there a way to cast RefCountedPtr <ParentClass> to RefCountedPtr < Child Class> in MDL? The ChildClass inherents the ParentClass
  • [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 UPDATE13 C++] Toggle Point Cloud Snapping

    OS: Windows 10 Application: MicroStation Connect Edition update 13 - v10.13.01.01 Language of the Application: C++ Goal: Set the snapping of created point cloud entities to off by default Below is the point cloud options of imported point clouds…
  • 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.
  • 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…
  • Programmer Course

    Hello Everyone I just started a new job. We are using Microstation v8i and moving to Connect. Who offers a course on writing C/C++ apps and DLL's? I have the book Microstation VBA and been reading all you guys have to offer but still missing the mark…
  • Possible Parameters for a user function for a certain Event in *_setFunction

    Hallo everyone, I am trying to write an MDL that recenters certain views when a datapoint or tentative Point is placed in a specified distance from the last one. For this task I want to use e.g. the mdlState_setFunction(STATE_DATAPOINT, centre2_processDataPoint…
  • [C++] Using libzippp libary in MDL-App

    Hey Guys, i want to use an extern libary, in this case the libzippp libary, to work with zip-files. I'm working with Visual Studio 2017 and I linked every libs staticly in the .mke file: LINKER_LIBRARIES = $(mdlLibs)bentley.lib \ $(mdlLibs)mdlbltin…
  • [CONNECT C++] SmartFeature Error LNK1120 while trying to compile

    Hello everyone, I'm new as a MicroStation developer and I'm trying to code an AddIn in C++ that extract the Smart feature tree from a DGN file. The problem that I have at the moment is a compiler error using bmake. This error it appears only if I'm…
  • DLL not unloaded, after MDL is closed (C++, v8i)

    Hello, I am just writing a short MDL for v8i (select series 4) in C++ that should mark all Elements in the file (by changing the line-weight), that fit to certain Database-criteria. There is a Modal Dialog that allows to Switch on or off 4 different…
  • [V8i] In C++ code how to chamfer an edge of smart solid?

    Hi, I was trying to create a smart solid then chamfer an edge in my code, I used mdlKISolid_setConstantChamfers() function but it seems nothing happened. Could anyone give any suggestion or hint for that? like which API function should I use etc,…
  • Compressing design changes features definition?

    Hello I have strange behavior in Bentley Map SS2 I have changed gasMain example, to use different feature display name than name: // Initialize "GasMain" root feature definition xfmFeatureDef_new (&featureDef); xfmFeatureDef_setName (featureDef…
  • PowerMap V8i - System fault 5

    Hi. I have a problem with creating complex elements from mdl application. Our solution works on Microstation 8, works on PowerDraft V8i but doesn't work on PowerMap V8i and Bentley Map V8i (SELECTseries 2). During creation of objects suddenly program…
  • Re: KIEDGE VS KICOEDGE

    Hi, Brien Thanks for your reply. What I want to do is to get the solid body's faces from the new sheet body. I want to know the face associated with the sliced wire body because there are some information on the face. I just want to get some…
  • [2004 MDL] need help in clipping the ellipse.

    Hi I am trying to clip the ellipse but the problem is in the boundary that i could not clip the ellipse to make it half either semi circle or other. please help me to sort out this problem. regard sagar..
  • KIEDGE VS KICOEDGE

    hi,guys Can any of you explain the difference between KIEDGE and KICOEDGE? What I want to do is to get faceIDs after calling mdlKISolid_slice. First, I call mdlKISolid_getEdgeList(bodyList, slice), then, from each body I can get each face…
  • [2004 MDL] Help comparing the points.

    I want to compare the end point of line with the start point of the adjencent line. in the fig attached let the green line be Line1 and Red line be Line2 the two lines are connected at a point now i want to compare the end point of line1 with start point…
  • [2004 MDL] Element Type count

    What is the function to count the total number of elementtype used in the dgn files? for eg. there we use line linestring shape etc and i want to count all the element type used there. please help me. regards sagar..
  • [2004 MDL] information needed

    Hello Everyone i am trying to develop a MDL program, a dialog box containing the two buttons 1.Function button: do the function of the code 2. cancel button. here i am confused what functions to use when i check the guide there are loads of…
  • About mdlKISolid_evaluateFace's input (u,v) and output.

    Hi guys, Recently I'm using mdlKISolid_evaluateFace to get the face's one point and its normal. About the input parameters u and v, I do not totally understand. I think (u, v) is the range from (0, 0) to (1, 1). As an example, I select two face, one…
  • How to get segment length from segmens of line of string element.

    Hi, How to get segment length from segmens of line of string element i am able to see it in microstation application element properties section but need a way to get it programmatically. Can any one please suggest me the APIs for that. Thanks…
  • Get information from XAttribute

    I have a dgn file with XAttributes. I want to extract the datas from it. On the picture under the roads there is an osm_id and a name. I need these datas. I scan the dgn file and my callback function look like this: int DataHandler::TestCallback…
  • Native Dialog and MFC support

    I'm doing native code MDL development using C++ and VS2008 and Microstation V8i (08.11.05.17) I'm a dotnet developer and now a the basics of MFC and Win32 programming. I am trying to understand the difference between native window and MFC dialog…