Browse By Tags

  • Advanced colorpicker

    Hi folks, I would like to let the user specify a color through RGB values like in the tool settings for the Change Attributes tool. How can I do that ? TIA, Evan
  • [V8i MDL] Reading and writing text formatting from a text node

    Hi folks, I'm trying to write a routine to repair text in a design file, fixing things like font, text scale and line-spacing. One of my problems is AutoCAD DWG files converted to MicroStation. These files have text that often looks okay, but has an…
  • mdlState_ functions causing silent termination when app is called by another MDL app

    Hi, I've been beating my head against the wall on this for awhile and I'm wondering if anyone else has seen this. I'm upgrading some old 'pure' MDL apps that have been used with V8 2004 in WinXP to V8i in Win7. There is one core application that performs…
  • [V8i MDL] Commands called by items in an IconPopupRsc

    Hi folks, I have two problems with IconPopUp items. Firstly, I have a dialog box working happily, and I decided to copy the items into an IconPopup in order to modernise the display. To achieve this I copied the contents into a DialogItemListRsc, define…
  • Can I convert a KISolid into a ACIS solid and use ACIS kernel to deal with it?

    Hi everyone, I am a freshman in MDL, but I am familiar with ACIS programming. Can I convert a KISolid into a ACIS solid and use ACIS kernel to deal with it? Thank you~ Guozhong WANG
  • mdlKISolid_getSurfaceElements() crashes for a particular element, throwing a stack overflow exception

    Hi, I'm currently working with mdlKISolid_getSurfaceElements() in order to split a Smart Solid. But it is throwing a stack overflow exception and finally crashes.I guess this is because of many BSpline curves present in that solid. Can someone help…
  • [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…
  • Re: [V8i C] Finding bugs and problems !

    Unknown said: Now to the call stack in question. I see that it is hitting a function that is doing an RGB draw. We just had a similar issue with this family of functions that was corrected by enlarging the buffer by one. Mark, Problem was…
  • 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…
  • 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…
  • Retriving Element Information (Coordinates, lavel and type) from dgn v8 file and storing it in text file or csv file.

    Hi, i am building an MDL application that can retrive information from dgn file and store it in either text file or csv file. right now i am able to get all the element information but i am not able to write that to text file ( basically stuck in file…
  • How to get "Global LineStyleScale" by MDL

    Hi. I'm looking for the way to get the Global LineStyleScale of activefile, that users can get by Keyin "active linestylescale". I allready tried to following way : 1. tcb->lineStyle.scale. it is the parameter of active lineStyle. …
  • [V8i MDL] How do I create sub menus with mdl?

    Hi, I want to create an application pull down menu with sub menus using MDL (no resources) but I can't find a way to create the sub menus. The main pull down menu is no problem to create and show in the menu bar. I use the mdlDialog_textPDMItemIns…
  • Plotting control via MDL

    Hi all, I have a pre V8 mdl app that I'm attempting to bring into the V8 realm. This app has plotting funcitonality that does some customisation of the drawing before sending it off to the plotter. I've discovered that plotStat is no longer available…
  • [V8i C] mdlKISolid_elementToBody2() returns ERROR for B-spline Curves

    Below code returns ERROR for a complex shape element that contains two B-spline Curves as below; status = mdlKISolid_elementToBody2(&cuttingBody,NULL,cuttingEdP,ACTIVEMODEL,1L,FALSE); Any idea?
  • Controlling Microstation mdl Packager (Packapp) with VBA

    I have a need to automate the packager app but there doesn’t seem to be any way or an API. In basic for I want to be able to use VBA to pipe in a file and get packager to only search and package the relevant reference files If anyone has any information…
  • Database linkages

    Hi i am trying to link graphical elements to the database using odbc connection. Everything works fine in terms of text, but i need the level or colour of a specific element to go accross to the database and should change dynamically if i change a…
  • Issue with MDL Application on Microstation V8i

    Hi, i've an MDL aaplication built to be run on Microstation V8i, which i use to create an .CAL file from the fenced area of the .DGN file. The application also inserts the title text information of the .DGN into the .CAL file. Though, it works fine…
  • MicroStation v8i cell placing problem

    We am trying to update a MDL application to MicroStation v8i SS2 that runs with MicroStation v8 2004 Edition without any problem. Some functions are changed and we fixed the required lines. There seems no change on cell placement functions so we leaved…
  • Is it possible to use dialog item like V8i task navigation menu for user command ?

    Hi all. Now, I customize user command dialog. Could someone please teach me that Is it possible to use MDL DialogBox item like V8i task navigation menu witch can show and close container items? (like following picture) Or, if it's impossible…
  • MicroStation V8i Minimize Event Handler

    I have an MDL Application that looks for the minimize event in MicroStation and minimizes one of my own application windows if the event is caught. I'm using mdlWindow_setFunction (WINDOW_MODIFYEVENTS, myOwn_WindowEvent) , but I no longer recieve an…
  • Incomplete CAL file creation in MDL

    Hi, I've an MDL application used to create .CAL file from the fenced area of the .DGN file. I also insert the title text information of the .DGN file into the .CAL file. I've the following flow in the application. // Load CALS driver mdlInput_sendKeyin…
  • VS 2008 & MicroStation API

    Hi All, I'm trying to get started with the MicroStationAPI. I think I've read all that there is to read about the API now! I'm a little confused, when I create my MFC DLL project in VS2008, there is no DllMain which supposedly should have…
  • Re: mdlTextStyle_iterate() crash in V8i

    Hi Jon, I'm happy to use a modern(ish) programming language, but I gathered from the comment you made in a previous thread last month (12th Aug 09) that such a function didn't exist.: Jon: "I looked in the MicroStationAPI without…
  • MDL Function to retrieve design file unit resolution

    Hi All, I'm trying to find the mdl function to retrieve the design file's unit resolution. If anybody can point me in the right direction it'd be greatly appreciated. I'm also trying to retrieve the following settings from TerraScan; Master Unit…