Browse By Tags

  • How to implement SetFileSaveFunction callback function?

    I develop add-on for MicroStation using CONNECT Edition application with C++. Using Microstation10.15 update SDK I would like to get Save event when save triggered. extern "C" DLLEXPORT void MdlMain(int argc, WCharCP argv[]) { SystemCallback::SetFileSaveFunction…
  • 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…
  • [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…
  • [CONNECT C++] Copy context resizes the elements x10

    Hello, I'm trying to use the ElementCopyContext class in order to copy each element from an attached DWG file. Later I'd like to import only some of the elements. The problem is the final result, it is ten time bigger than the attached file. I tried…
  • [Connect C++] How to get the color of an element?

    Hello, I have a problem while retrieving the colors of the different geometric parts of an element. For parsing the geometry I'm using the IElementGraphicsProcessor to process the element and retrieve the different graphic primitives types (SolidPrimitives…
  • About control the progress bar which is already existed is the Microstation

    Hi everyone: Does anybody know how to get the api of the progress bar ,so that i can directly use it which is already existed in the MicroStation, shown in the following figure And i have a demand that will take a lot time to process, so what can…
  • [Connect C++] list with all the "class name" types of an element

    Hi, Is there a way to get all the class name types that identify elements? Typically for gathering the class name I'm using the following commands: for (DgnECInstancePtr instance : ecMgr.FindInstances(*scope, *ecQuery)) { DgnElementECInstanceP elemInst…
  • 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…
  • [Connect C++] Compile Error while adding Boost library

    Hi, I'm encountering many errors while trying to include boost library inside my MDL program. More precisely I'm trying to include in my header file the IfcOpenShell libraries that have many dependencies to the boost libraries. While trying to compiling…
  • [MSCE C++] Add a third party VS C++ library to .mke files and build the exist project into MSCE

    Hello everybody, has anybody meet this problem that change an existed VS c++ project into .mke file, thus bmake can build all the file together? or add a OpenCV additional library to the .mke file? dirToSearch = D:/xxx/install/include #thirdparty libraries…
  • [CONNECT C++] Error LNK2001 calling function from another cpp file

    Hi, I already asked a similar question and the problem was a missing library in the *.mke file. At the moment I have my "main" .cpp file and I want to call an Initialization function from another .cpp file. I did it in a similar way to the "exampleSolids…
  • [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…
  • MicroStation Programmer

    Hi All, We are looking for an experienced MicroStation Programmer to work with us at our Bangalore office. Anybody interested, please contact Uma.HR@magnasoft.com. PM me for JD.
  • [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…
  • [CONNECT Update 12 C++] Which version of MicroStation connect is more stable?

    We currently use v.12 but we experienced crashing problems with pointers. Someone suggested that we downgrade to v.10, is it more stable?
  • [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…
  • [V8i C++] Programming with Eclipse IDE, HowTo configure IDE

    Hello All, I read that preferred programming environment is Microsofts Visual Studio .NET and preferred language is C#. But I don't have experience in C# and I don't want to buy MS Visual Studio either. Is there a HowTo that describes how to setup a…
  • 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…
  • PLEASE READ: MicroStation Programming forum best practices

    1. When including code in your post, please use the the SyntaxHighlighter, which is one of the tools in the "Advanced Reply Editor". 2. To let others know the MicroStation release and programming language being used without having to open the thread…
  • Help for API to fetch DGN V8 DRV data records for an Element.

    I am working on DGN V8 APIs. Here I am stuck to fetch the corresponding .drv file record data for a DGN Element. What are the APIs that can be used to get this data from .drv file?
  • [V8i C++] Is Visual Studio 2005 still the preferred way to go?

    Hi all, I started doing MDL programming about 20 years ago but for the last 5 - 6 have only touched it "once in a blue moon" to update for some clients apps that still run on "old" MicroStation, pre V8. One of my clients now wants one of these apps…
  • Re: [V8 C#] Click event handling (not ILocateCommandEvents nor IPrimitiveCommandEvents)

    Thank you both Jon and Jan. I've got some expertise in programming C# applications and I have already some developments for MicroStation, so I would like to try invoking the MDL API from C#. Nevertheless if it were necessary, I could also try to…
  • [V8 C++ API] Difference between getIsDisplayedFlag() and getIsHiddenFlag() for Levels?

    Also how does one define whether Element in a Level is visible or not? Does it depend on LevelOverride flags?
  • 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…
  • [V8i C++] bmake building - unresolved typeref token

    Hi everyone! I am learning how to create C++ MDL applications. I am building my simple "hello world" application. It is created using the wizard (...) with appliation of the ILocateCommand Accept method, which outputs some message to the message center…