Browse By Tags

  • [C# MDL] Create non-static commands, enabling inheritance from a base class

    Hi All, Looking for some advice here on creating MDL commands that allow inheritance from a base class... Reason being I plan to build out a heap of classes that inherit / override methods from a "base" class, to avoid having to manually call these…
  • [Connect] Technique for trusting C# MDL to work when stored on network drive

    I have been struggling for a few days trying to get C# (.NET 4.6.2) MDL's to work when they are stored on a network drive. I am currently getting the message "MDL Loader: Could not load application. xxx" when I move the MDL's to a network path and update…
  • [C# MicroStation CONNECT Edition Update 15] RealDWG API access through acdbmgd.dll

    Hi there, New to the MicroStation SDK - I am familiar with the AutoCAD ObjectARX lib. I see that RealDWG is included with MicroStation but when I am trying to perform the same code I have in AutoCAD it is not working the same within a C# MDL app in…
  • From V8i to Connect with KISolid functions

    Hello, we are in the process of migrating from v8i to Connect SDK. We have many dlls and we need a little help to find some references that are probably relocated, or new ways to do the things we used to do through the old SDK. Lately we had been…
  • [V8i C# MDL] mdlView_getClipBoundaryElement not working

    Hi, I had an issue on calling mdlView_getClipBoundaryElement() which is the opposite problem of the post below. I was trying this with AECOsim V8i SS6 and VBA approach did work. However, it gave me -168 error code and Element ID as 0 all the time. I…
  • [V8i C# MDL] mdlView_setClipBoundaryElement -168 MDLERR_NOCLIPVOLUME - Help!

    Wondering if anyone would be able to help with an issue I have setting the clip volume for a view using mdlView_setClipBoundaryElement. Here's the implementation: [DllImport("stdmdlbltin.dll", CallingConvention = CallingConvention.Cdecl)] internal…
  • [V8i C#/MDL] Translating StatusInt into something readable.

    I wonder if anyone could help please? I've got various unmanaged MDL functions in a C# addin for microstation v8i. The implementation of these is fine and when they work it's great. Here's some code for background: [DllImport("stdmdlbltin.dll", CallingConvention…
  • [Microstation v8i, C#/C++] How to get the ElementRef and DgnModelRef from a C# API element?

    I am trying to get the ElementRef and DgnModelRef from C# API of elements I have selected so I can pass through to some Native MDL code that needs to use them? From searching through these community forums and browsing the C# functions/properties I…
  • [V8i MDL C#] Exchange data between Mdl- and C# applications?

    I use V8i Ss3 and I develop MDL and C# applications. How can I return value from MDL application (written by me) to my C# application by using Microstation or Windows? I cann`t find standart way in Microstation SDK to return value in C#/VBA apllication…
  • [V8i C#] PInvoke MDL functions error

    I'm attempting to invoke various MDL functions in a C#.NET project. I've successfully managed to do the following: [DllImport(@"C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\MicroStation\stdmdlbltin.dll")] private static extern void…
  • [V8i C# MDL] Hatching Shapes

    Hi, I'm trying to hatch a shape using a .PAT file. I couldn't find any functions to do this despite MicroStation allowing it via the interface. I have found the mdlPattern_addAssociate2() function which takes a DwgHatchDefLIne structure which I think…
  • 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…
  • [v8i C#] Creating grouped holes via stdmdlbltin.dll

    Hi all, I'm currently writing an application which is plotting the Environment Agency's surface water flood map (~1.5Gig ShapeFiles) to v8 DGN's, tiled into 20km chunks (a pre-requisite for our internal applications). This is currently being loaded…
  • 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…
  • Write a COM Server in C# - call from VBA, C++, or C# or VB.NET

    COM Server created using .NET We've written an article about creating a COM server using .NET . It details the steps required to create a COM Server DLL (also known as an ActiveX component) using Visual Studio. Use a .NET COM…
  • is there a mdl api to publish the dgn file to i-model file?

    Hi there, Is there any api to publish a dgn file to the i-model file?either native or managed api? Thanks in advance. Gang