Browse By Tags

  • [Connect C++] Looking for example of using ApplyViewOptions Struct Reference

    Hi all, Where can I find examples of using ApplyViewOptions Struct Reference? Thank's for your help Hervé
  • mdlVersion_getVersionNumbers() gives the wrong subMinor number

    I think this function is giving incorrect results for the subminor version. On MicroStation v10.17.02.61 the VersionNumber struct shows: release = 10 major = 17 minor = 02 subMinor = 450 Similarly on MicroStation version 10.17.01.62 it reports as…
  • [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…
  • [CE U16 C++] Unresolved symbol using UiFramework functions

    Hi everyone, I am getting linker errors when I try to use functions from the UiFramework. I already posted this on another thread as a follow up, but since that thread already has an accepted answer I decided to open a new topic for this distinct…
  • 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…
  • [CONNECT] [U14] mdlScanCriteria_scan doesn't find child elements

    Hi, We are heavily migrating our V8i code to CONNECT and we have a problem with elements within elements. In our V8i code we can scan for all the element, that is, even de cells in a cell. And with mdlScanCriteria_setAttributeTest we find the right…
  • 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 C++] Apply dimension style to existing dimension with no style

    Hi folks, Is there any way to add a named dimension style to an existing element that has no dimension style? The IDimensionEdit::ApplyDimensionStyle() function does not seem to be able to do this. After calling this function with a named dimension…
  • Is it possible to disable the "Export" menu in CE-Backstage at runtime?

    Hi, We are developing a plugin which shall block user to export some files from a designated folder. But for other normal folders, it shall allow to export. So we need to enable/disable "export" menu at runtime. Is it possible? If yes, which API can…
  • [CE U16] [C/C++] Text in 2D Cell is facedown.

    Maybe I'm missing the obvious, but here's my problem: Our customer places cells containing texts (data fields) in a 2D model and my program replaces these texts when needed. I also rotate the texts 180° if necessary, so that they are more "readable…
  • [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…
  • [CONNECT UPDATE 15 C#/C++] Attach reference with Geographic Reprojected orientation

    Hello, I need to attach reference with Geographic Reprojected orentation via C# or C++ code. I searched forum but I did not found any help for C#, C++ had some ideas like mdlRefFile_beginAttachmentToModel into mdlRefFile_setIntegerParameters(31, REFERENCE_ATTACHMETHOD…
  • What do you use to track progress in a completion bar?

    In the past, when scanning a model I would use the file position. I would use dgnModel_getGraphicElmStart() and dgnModel_getEOF() to determine the starting and ending file positions, and then update my progress bar based on the current file position being…
  • 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++] Detecting workspace changed

    Hi folks, Connect has a function SystemCallback::SetWorkspaceChangedFunction(). Similarly V8i had a function mdlSystem_setFunction ( SYSTEM_WORKSPACE_CHANGE, myworkspaceChanged ); For both of these, the arguments to the user function are not defined…
  • 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…
  • incompatibility between liblas and MSCE

    Hi everyone, for loading las file and also processing las file data without converting to pod file, i add third-party library liblas to realize this function, but while add the following code lines: ... //read las file std::string filename = "F:/Data…
  • [Microstation Connect Edition] [Update 13] [Version 10.13.01.01] [c++] Getting mesh points from elements

    How can I get a complete list of points to draw objects from Microstation Connect like a tours for example? I have implemented a IElementGraphicsProcessor and when processing a tours I only get 16 points as shown below: My IElementGraphicsProcessor…
  • [CONNECT C++] mdlClip_isElemInside() now observes view attributes

    Hi folks, While porting some V8i code, I noticed I get inconsistent results with clipping. In V8i when I call mdlClip_isElemInside(), it will give me consistent results regardless of the element class and view attributes. The element is either in, outside…
  • [Connect U13] [C# | C++] mdlScanCriteria_setXAttributeTest does not look into Cells

    I have a problem with the function mdlScanCriteria_setXAttributeTest mentioned by Yongan.Fu in this post: https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/115328/v8i-c-finding-xattribute…
  • [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…
  • [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…
  • 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…