Browse By Tags

  • mdlSystem_newDesignFileAndModel and "File is currently in use by"

    Hi, IHAC that requests the V8i behavior in the CONNECT Edition. Currently we’re porting our old application from the V8i generation to MicroStation CONNECT Edition updt16 10.16.00.84 (updt17 port is coming). Our application runs as MSINITAPPS and…
  • 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…
  • [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…
  • [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…
  • 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. …
  • [CE U14 Other] Request good custom Ribbon example of a DgnLib built from a XML

    Hi, Although I know this item is discussed more than once and most answers mostly points to the 'Ribbon Chapter' in the 'Microstation API', I still find it very confusing to get a clear picture. And even more so a working example. So can anyone shed…
  • Define a ACS with rotation Matrix

    Hi, I'm using the function RotMatrix :: InitFrom2Vectors( DVec3dCR xVector, DVec3dCR yVector) to initialise a Rotation Matrix for a new ACS. RotMatrix acsRot; DVec3d xVector, yVector; xVector.Init(0, 1, 0); yVector.Init(0, 0, 1); acsRot.InitFrom2Vectors…
  • 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…
  • [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…
  • 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…
  • CE Update 13: Porting from MDL V8i. Programmatically add menu

    I'm currently porting 100+ applications for V8i written in MDL to native code (C++). Most of these applications are launched by selecting the corresponding item in the pulldown menu (see attached screenshot; Italian version) This menu is programmatically…
  • Bulk fillet linestring via script file or VBA

    I am working on viaduct post tensioning & have managed to plot a 3D smart line for the tendons (~700 done automatically) but I am now trying to add fillets to them via a macro or VBA to bulk fillet each line based on a dynamic radius. For example end…
  • Draw Sections along center line and offset to centerline (C# Programming for microstation V8 2004)

    Hii All, I am new to microstation development. I am using C#.net and Visual Studio 2010. I want to do offset of a center line in both side and draw sections in a certain interval to the centerline. Would anyone help me to do this without using cadinputque…
  • [V8i ss3 mdl] mdlScanCriteria_setRangeTest

    Hi all, I want to scan a part of a model and the same part of an attached reference model. I can scan the whole model and whole reference model. The problem is to scan a part of the model. I tried the functions: mdlCnv_dRangeToScanRange (&scanRange…
  • [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…
  • [pre-V8] Alternate Coordinate Systems in external files

    Hi all, I'm using MDL in v7 and I'm trying to find a way to read in the ACS from another file. I've checked the TCB (type 9 element) in the file I'm reading and there is nothing that matches the ACS specified in the file. I've expanded the search…
  • [V8i MDL, MicroStationAPI] Text Fields API

    There is no API for text field s that I can find. The sole clue is DEPENCENCYAPPID_TextField in header file <dependency_appid.h> . An increasing number of users is asking questions about text fields. Various solutions to those questions present themselves…
  • 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…
  • MVBA - mdlLineStyle_getElementDescr

    I'm trying to get all subelements of styled line by mdlLineStyle_getElementDescr by following code... And what I get is only one element of the line style, instedad of all subelements of all droped components. How to do make it work? Paul…
  • WORDPROC commands and/or syntax

    Fellow Microstation Programmers, I recorded a macro and got the following commands. I'd like to modify them to do other things, however, I don't know what commands ("moveCaretToPosition, changeEDF, etc.) are available. Also I don't understand the syntax…
  • [V8i MDL] Select Series 3 MS_DWGSAVEAPPLICATIONDATA=1 (or ON) not working

    I store critical data as type 66 level 20 application data. I have a Bentley assigned signature. This works for ALL versions of MicroStation. I have included the V8 code. This does not work in an AutoCAD DWG file with any version of V8 from 2004 thru…