• [CE U17] COM/Interop does not release memory

    It's quite similar to https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/201080/mstn-ce-u14-vba-and-com-interop-does-not-release-memory but this time it happens while accessing child elements…
  • [CONNECT .NET] Get In-Memory Element from COM Impossible

    I want to get a .NET Element from a COM Element ... using Bentley.DgnPlatformNET; using Bentley.DgnPlatformNET.Elements; using Bentley.MstnPlatformNET; using BCOM = Bentley.Interop.MicroStationDGN; Element GetElementFromComElement (BCOM.Element oElement…
  • {CONNECT C#] sweep profile along Bspline or curve has error

    Hi, I want to create a Bspline curve element, but when I try to create the bspline, the MS will have the error and close automatic. This is my code: BCOM.Application msApp = Bentley.MstnPlatformNET.InteropServices.Utilities.ComApp; List<BCOM.Point3d…
  • [V8i MVBA] Extrude Profile to Solid

    I'm testing Extrude to solid method as follows: Sub TestExtrude() Dim oEle As Element 'Dim oSmartSolid As SmartSolid Dim oSmartSolidEle As SmartSolidElement Set oEle = ActiveModelReference.GetElementByID(DLongFromString("62494")) 'This is not necessary…
  • Entity Framework in v8i AddIn

    I am attempting to create an AddIn that writes data from a dgn file into a sql database via a .net 3.5 compatible version of Entity Framework. When loading and executing the addin, I get the following error: System.ArgumentException: The specified…
  • Problems and Solution about Resizable Arrays from MicroStation API through COM

    Win7 Esp SP1 MicroStation: various Visual Basic 6 Excel 2007 VBA Hello world, I'm posting this again, because I think it is an important matter. The problem is already in the second part of another thread, http://communities.bentley.com/products/programming…
  • RE: VB6 and V8i: how to Reference MicroStation?

    My new insights. Actually those zero's for UBound are not the problem. Although VB usually counts from 1, it is legal to walk from LBound to UBound, so from 0 to 0, so there is one databaselink. Robert showed me that the problem is Inside Process…
  • Re: Start Microstation from vba with user and workspace?

    To start MicroStation programmatically there are two primary methods. The first method you illustrate above using the Microsoft COM approach by creating a new MicroStationDGN.Application; where the ApplicationObjectConnector is preferred in most cases;…
  • Re: treeview in vba form

    UPDATED: 2015-08-28 For a majority of MicroStation VBA project and macro load and run errors ; of recent; my recommendations have been to use the following steps: 1. Run Microsoft Update to ensure that both Microsoft Windows and Microsoft Office product…
  • Re: MicroStation v8i ss3 vba How to check if solid is sphere?

    Unknown said: Declaring Function mdlElmdscr_isSphere in external vb.net application does not work It doesn't work because the MDL functions must operate in MicroStation's memory space. If you call from a separate .exe then you are operating in that…
  • [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(…
  • [V8i c#] Crash : 'RPC server is not available' or 'MicroStationDGN Error 1100'

    Crash : 'RPC server is not available' or 'MicroStationDGN Error 1100' Problem : After successful operations of the files and in some file, while changing the text property using keyins. Microstation application object gets null, but application…
  • Re: SetCustomProperty Question

    For SetCustomProperty , I see no practical limits imposed on the length when modifying a Microsoft's FMTID_UserDefinedProperties PROPVARIANT VT_LPWSTR using Microsoft's IPropertySetStorage API. The MicroStation COM GetCustomProperty implementation…
  • [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…
  • [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…
  • Re: Access all the opened design files in c#

    As Jon indicated, the MicroStation VBA environment and help are a great resource to get familiar with and utilize for testing/prototyping your code. Doing so provides you documentation, a fair number of samples to get started, and an environment that…
  • [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…