Browse By Tags

  • 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…
  • 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…
  • Detecting a Cached Saved View Attachment in MicroStation CONNECT

    Hi All, I have some legacy VBA code from v8i that I'm trying to port over to the CONNECT versions - it's using a CExpression with a pointer into the referenceFile struct for a specific reference: Private Declare PtrSafe Function mdlRefFile_getInfo…
  • [V8i MDL] "Move element" keyin

    Hi, Having problem figuring out how to send a "move element" keyin from a pushbutton on a dialog. This is the resource definition: DItem_PushButtonRsc PUSHBUTTONID_MoveFlag = { NOT_DEFAULT_BUTTON, NOHELP, MHELP, NOHOOK, NOARG, CMD_MOVE , MCMD, "element…
  • [V8i MDL]

    Hi, I have a native code MDL program for V8i with a dialog box on which I defined a pushbutton dialog item to send the MicroStation CMD_EXTEND_LINE key-in command. The problem is that it doesn't send the command at all. However, when I change the command…
  • [V8i C/C++] Detect GCS

    How do I detect whether the active DGN model has a Geographic Coordinate System (GCS) active?
  • [MDL V8i SS10] BMake Error in Source during compile, trouble finding .H files in folder %MS%\MDL\Include

    I am recompiling a currently working MDL application for SS10, using the SS4 SDK provided by Bentley Support. Was able to configure all that no problems, I think. I have changed the environment variables for the system to the suggested settings. The…
  • [v8i ss3 MDL] Problem with using a variables in dialog.

    I have four variables: var1="AbcdeZ" var2=22.22; var3=33.33; var4=44.44; In my dialog: var2 and var4 are lost, why? Any suggestion? Files in my project. File.h typedef struct globalsa { char var1[255]; float var2; float var3; double…
  • [V8i c++] MDL开发中如何读取元素的属性

    各位老师们好, 我想获得图中的所有属性; 现在通过mdlElement_getProperties、mdlElement_getSymbology两个函数获得了部分属性,如何获得Geometry、Material、Extended、Row Data 等属性呢。
  • CC 3MX Merge Into Master 能否被MDL访问并导出?

    CC建立的3mx模型,在作为参照导入MSV8i之后,选择Merge Into Master,变成了 DGN的一部分,用ElementInfo看了一下该Mesh为Acute3D Mesh类型,想问是否通过MDL能够访问并导出该Mesh数据?
  • Logitech gamepad in Microstation or Navigator for walking and flying

    Hello, Does anyone know of a way to connect and use a gamepad controller with Microstation v8i? I have a an older Logitech Dual Action gamepad, and I was hoping I can map it to Microstation's Walk ability. If it can be mapped like the movements…
  • msdV7Action.UpgradeToV8 doesn't seem to work

    I am processing some dgn files using C# and the bentley.interop.microstationdgn library. The code where my script crashes is pretty straight forward. using BCOM = Bentley.Interop.MicroStationDGN; BCOM. ApplicationObjectConnector ustnInstance; …
  • [V8i MDL/C++] Open only write protected files as read only without prompt

    Hello, I have to open a write protected file as read only at Bentley Map SS4 startup without any prompt. I specify the file name and use the -R switch in command line to do this, and it works fine. However, any further open file operation (ISessionMgrR…
  • [V8i - MDL/CPP] Bug in mdlPattern_addAssociative in V8i SS4 (8.11.09.832)

    Hi all We've found a bug in mdlPattern_addAssociative (and in mdlPattern_addAssociative2 as well). If you use code like this: PatternParams patPar; memset(&patPar, 0, sizeof(patPar)); patPar.modifiers |= PATMOD_SPACE1; patPar.modifiers |= PATMOD_ANGLE1;…
  • [V8i C#] How to get the DisplayName of a property from PropertyDef

    I'm writing an add-in in C# using the XFT API where I need to show the DisplayName of a property (of a feature) but in PropertyDef there's no such property than can get me the DisplayName. So how can I get the DisplayName of a property from PropertyDef…
  • Select all element on a level

    Good afternoon, i'm looking to create a VBA that allows you to search for a field in the Element information (e.g. description or text string) and high light the results in view one.. Not sure if this can be done but if anyone knows how i can…
  • Using Connect SDK in V8i

    I am very excited about the CONNECT Edition and the additions to the SDK. My company has not yet updated to CONNECT and uses V8i. I was wondering if it would be a bad pursuit to try and use the classes and their methods in the new SDK for V8i programs…
  • [CONNECT C++] Module "concepts" and compilation parameters

    Hi all, I am trying to help a user in the process of MDL migration from V8i to CONNECT, and I have some doubts with some modules and objects equivalences and link parameters. This is how they are currently working in V8i: 1 - They create a .DLL…
  • [V8i MDL C#] Exchange data between Mdl- and C# applications?

    I use V8i Ss3 and I develop MDL and C# applications. How can I return value from MDL application (written by me) to my C# application by using Microstation or Windows? I cann`t find standart way in Microstation SDK to return value in C#/VBA apllication…
  • [V8i MDL]

    Hi folks, In the MDL Function Reference Manual for V8i, there is some example code for adding a completion bar to the status window (under the chapter "Adding a Completion Bar to the Status Bar"). I have been using this code for a long time, but recently…
  • [V8i MDL] Correctly extracting the font used by a TextStyle defined in a DGNLIB

    Hi guys, Programmatic problem: I have a DGNLIB defining my "correct" TextStyle. I have a DGN where the draftsperson has overridden the local TextStyle with a different font. I can see that the TextStyle doesn't match by looking in the TextStyles dialog…
  • [V8i C++] Handling of Text Styles with zero text size

    Hi guys, It seems in AutoCAD, Text Styles with zero size prompt the user to enter the size when the text is placed. How is this handled in MicroStation? I have some AutoCAD derived models with zeroed text sizes in the Text Styles. When I programmatically…
  • [v8i MDL] Removing all holes from a solid automatically

    Hi, I want to remove all holes on these smart solids automatically in the attached DGN file. How can I do that? sink.dgn