Browse By Tags

  • Point3dInPolygonXY returns error in C#

    I am trying to determine whether or not a text element (or e shape) is placed inside a shape/complexshape. No matter what I try, I get an error. Here is the code: Point3d pText = eleText.get_Origin(); Array psShape = e.AsShapeElement.GetVertices(…
  • IChangeTrackEvents Cancel ElementChanged

    I created an addins with IChangeTrackEvents to detect the deletion of an item. Can i cancel the deletion with a question? Any ideas? Thanks Public Sub ElementChanged(AfterChange As Bentley.Interop.MicroStationDGN. Element , BeforeChange As Bentley…
  • Programming - MicroStation

    General Macro Recorder MDL VBA
  • 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; …
  • Procedure to search the value from the Excel in a Microstation files

    Hi all, Should I create a macro or procedure to search the value from the Excel file in a Microstation files. I have a value (text or number) written to Excel I want to create a link that searches the value (text or numbers) on the dgn file. Thank…
  • [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…
  • Custom Menu Item in CONNECT

    Hey everyone! So, I have a working MDL (written in C++) set up with Connect that provides functionality where I can intercept and basically override certain commands with my own functionality. In some cases, this functionality is launching an outside…
  • RE: [CONNECT] How to Stop Autoload of MDL apps

    Hi Loren, Maybe it is a good idea to post this in the MicroStation programming forums communities.bentley.com/.../microstation_programming Also review this link communities.bentley.com/.../running-mdl-applications MicroStation initialization. MicroStation…
  • fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

    Hello everyone, I was trying to compile (MicroStation Connect version 10000025) delivered MDL example through MicroStation Connect Edition SDK (version 10000028) as Administrator, however, I'm getting the fatal error above. My computer is running on…
  • [V8i MDL] Every second row is black for large images

    Hello, I have a problem that every second row of PNG file is black (RGB 0, 0 ,0). It is generated using these MDL commands: int g_colorMode = COLORMODE_RGB; int g_tileCols = 0; int g_tileRows = 0; int g_fileFormat = IMAGEFILE_PNG; int g_Compression…
  • WString Layout Change from VS2005 to VS2010

    Applies To Product(s): MicroStation Version(s): 08.11.09.459 Environment: N\A Area: Programming Subarea: MDL Original Author: Ashrafali Jahagirdar, Philip McGraw, (Bentley…
  • [V8i MDL] White as transparent color for mdlImage_extCreateFileFromRGB

    I'm using mdlImage_extCreateFileFromRGB to export design file as image with setting Preferences -> Black background -> White set to true. So I have white background in my view. What I need is to set white background to be transparent when exported to…
  • Function mdlState_startFenceCommand - strange results

    strange results Hi I have very interesting problem with searching elements which are inside fence. Function findTekst() is to find text inside fence which color and weight are 0. This is very simply function , but I notice strange situation. Code…
  • Function mdlState_startFenceCommand - strange results

    Hi I have very interesting problem with searching elements which are inside fence. Function findTekst() is to find text inside fence which color and weight are 0. This is very simply function , but I notice strange situation. Code below works correctly…
  • 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…
  • About mdlKISolid_evaluateFace's input (u,v) and output.

    Hi guys, Recently I'm using mdlKISolid_evaluateFace to get the face's one point and its normal. About the input parameters u and v, I do not totally understand. I think (u, v) is the range from (0, 0) to (1, 1). As an example, I select two face, one…
  • [V8i] MDL LOAD fail if dgn is located on fileshare

    Application: MS SS2 and MS SS3 (08.11.09.357) HW/SW: Any Location of workspace + mdl: tested both local and on network. Hi. This is my first post on Bentley forum, as a result of chating with Conor King from Bentley support, issue #7000061864…
  • 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…
  • 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…
  • Posting arc elements to Oracle spatial

    Hi! I have problems posting arc elements to oracle spatial database with Bentley Map. All my arcs become lines to db. Is it possible to have both lines and arcs in same geometry column in db? I have sub-feature, which geometry type is linestring/curve…
  • Re: Creating new polygon element (type 106)

    Erik, The polygon collection class definition that you generate at runtime must have both a root and subfeature. In MDL C code the pattern might appear as follows: // Create polygon collection feature definition xfmFeatureDef_setMinOccurrences …
  • 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…