Browse By Tags

  • [CONNECT C++] YawPitchRollAngles

    I noticed the YawPitchRollAngles struct in the MicroStationAPI documentation. Is this related to Euler angle s?
  • [CONNECT MicroStationAPI] C++ Objects and Dialog Items

    We write an app. that uses the MicroStationAPI using C++. If that app. has a user interface using MSDialog and dialog items then we must communicate via the Dialog Manager . But the Dialog Manager requires us to publish global variables, which don't fit…
  • [CONNECT] MicroStationAPI Documentation Generated Incorrectly

    While browsing the MicroStationAPI documentation I came across Database Connectivity . The words I read didn't seem to match the page layout on screen... The function headline of mdlDB_openCursorVersionWithID() lies at the bottom of the page, but…
  • [CONNECT C++] Is Element a Solid?

    I'm writing a tool that wants to check whether an element is a solid of some kind. I think that I can do this for a primitive solid (slab, cone, extrusion etc)... const bool DontSimplify { false }; ISolidPrimitivePtr solid = ISolidPrimitiveQuery:…
  • RE: [CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback

    Unknown said: BoxDependency example It's a work-in-progress. I've updated the example to illustrate three types of dependency... The original BoxDependency ported to C++ that places an elastic band around a selection set An offset dependency that…
  • [CONNECT C++] App. version number

    VersionNumber msVersion { 1, 2, 3, 4}; mdlSystem_setMdlAppVersionNumber (nullptr, &msVersion); I put the above in MdlMain() . When I look at app. details in the MDL Applications dialog, the Version is blank. I notice that most delivered applications…
  • RE: [CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback

    Unknown said: YongAn Fu posted a dependency code sample I've written an article about dependency management. It resurrects the BoxDependency example that Mark Anderson wrote in 2001. I've updated the code to use the classes provided in the MicroStationAPI…
  • [CONNECT] TextField API

    Unknown said: [1 Oct 2012] Development's current indications are that the next Major Release of MicroStation likely will provide a TextField API with the ability to get/set/remove fields via TextBlock. Four years on I see that there is indeed a TextField…
  • [CONNECT MicroStationAPI] TCB Autodim deprecated

    In versions of MicroStation before CONNECT, we could interrogate tcb->ad1.format.adres2 to find the current decimal precision setting. The Autodim member of the TCB is deprecated in CONNECT. How should we get/set that setting in CONNECT?
  • Including MicroStation API .h files in build

    I am doing some text manipulation in V8i in C++ and am working with some of the structs. One of those is the FontManager.h, located in a MicroStationAPI folder. I added the following to my mke file: dirToSearch=C:/Program Files (x86)/Bentley/MicroStation…
  • [V8i C++] Text Style Data Extraction

    MdlTextStyle vs. DgnTextStyle First, which is preferable: the MdlTextStyle API or the DgnTextStyle API? Is the MicroStationAPI DgnTextStyle just a wrapper around the mdlTextStyle_api ? Why does the MicroStationAPI use those DgnTextStyle.GetProperty…
  • 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…
  • [C# Addins] How to create a line element along the curser dynamically

    Hi, I want to create line element along the curser dynamically .How i can do the same in VBA Code instead of clicking the "Linear Elements" button. I can create part A dynamically with calling IPrimitiveCommandEvents ,but I have no idea how to continue…
  • CSearchTypes class simplifies Locate and Scan Initialisation

    We often need to work with a given set of MIcroStation element types when writing an application for locating and scanning elements. For example, we may want to work with lines and line-strings, and therefore want our users to be able to... Locate…
  • V8i Compilation Error

    Hi, I am getting the below error.Please help me to solve the issue The error is c:\Programfiles\Bentley\Micros2\Micors1\mdl\library\toolsubs.dlo : Unrecoverable errors detected. Output file not created. BMAKE: call trace Thanks and Regards…
  • [V8 C++] DgnFile.SaveXxx

    The MicroStationAPI provides two methods to save a DGN file as something else. What is the difference between those two? DgnFile.DoSaveAs DgnFile.DoSaveTo One obvious difference is that the former takes more parameters than the latter,…
  • [V8i c#] Issue with the text font change using API

    Problem : 1. If we change the font using api 'currentElement.AsTextElement().TextStyle.Font' , Redraw & Rewrite the element. There is a displacement in the text location. if we use the key-ins, or open manually and change the font. There is no…
  • KISolids API - Draw on Solids

    Hello, I was wondering which functions in the KISolids API replicate the behaviour of the keyin PUSHPULL DRAW. For example, suppose I wish to project a line or a circle onto the face of a solid such as a cylinder and make this edge part of the solid…
  • [V8i c#] Is there a API to import the level library

    Is there a API to import the level library Problem: Is there a API to import the level library which is correspond to the below key-ins?? MicrostationDGNApp.CadInputQueue.SendCommand("LEVELMANAGER DIALOG OPEN"); MicrostationDGNApp.CadInputQueue…
  • Event Handler and copy command

    Hi I'm wondering if it is possible to use an event handler or an iPrimitive to "listen" for a copy command and if the element that's being copied meets certain criteria modify it's tags programmatically. Thanks Dave
  • [V8i c#] Is there a API to Change the grid aspect ratio

    Problem: Need to know the API to change the Grid Aspect Ratio Tried with the ActiveSettings but we have option to change ActiveSettings.GridUnits, and GridReferences and the same is achievable via key-ins 'MicrostationDGNApp.SetCExpressionValue…
  • [V8i c#] Open design file needs delay

    Open design file needs delay Problem : Application is visible & after opening the Design file, immediately tool bar, menu bar will not display the GUI. If we use Delay for 3 seconds GUI gets displayed. Need to know we are Opening the design…
  • 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…
  • [V8i API] Create text element with non-existing font name / generate font number of missing font by name

    Hello, is there a way to create a text element with font that is not currently available? Let's say I need to create a text element which uses 'simplex' font in first version of MicroStation V8i where normally is installed only one SHX font - 'msdefault…
  • [V8 V7 C++] What is Cell Extension in V7? How to get it in V8?

    Hi, What is the concept of Cell Extension in V7 Files? Is it relevant for V8 too?