Browse By Tags

  • [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…
  • Re: Error CreateComplexShapeElement1 with only ArcElements

    Hi Jon, Coincidentally, I'm having the same strange problem today. The MsdError number given in Werner's error messagebox snapshot (repasted below) does not appear to be listed in the MsdError Enum listing in the MicroStation VBA Help file. Complicating…
  • [V8i c#] Is there a API to merge two files

    Is there a API to merge two files Problem : Need API to merge two DGN files or alternative method without using keyins MicrostationDGNApp.CadInputQueue.SendCommand("DIALOG REFERENCE TOGGLE "); MicrostationDGNApp.CadInputQueue.SendCommand(…
  • 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?
  • How to convert solid clockwise sense bspline surface boundaries to hole clockwise sense?

    Hi All, I have a Bspline Surface with a set of boundaries whose clockwise sense is set to "Solid". Is it possible through MDL API to get the equivalent set of boundaries on the same Bspline Surface whose clockwise sense is "Hole"? Thanks &…
  • [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…
  • [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…
  • 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 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…
  • 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…
  • [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…
  • [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…
  • mdlScan_xxx using C++ API?

    I'm needing to search for certain element types in the active drawing. I see the sample code for cell libraries that uses the mdlScan_xxx routines. But I can't find an equivalent in the C++ API. Is there something newer / better / shinier than mdlScan_xxx…