• Create New DGN On ProjectWise

    Suraj Kumar
    Suraj Kumar
    Hello everyone, I'm facing an issue while attempting to create a new DGN file directly within ProjectWise. I've successfully managed to create DGN files on my local drive using different approaches. However, I'm struggling to replicate this process…
    • 1 month ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Addin Setup Guide

    Suraj Kumar
    Suraj Kumar
    Hi Community, I am a beginner in Microstation API programming, I have gone through some of the resources available and am able to create my first MDLCommand in .NET C# which does a set of tasks in the Microstation. I still have some doubts on the…
    • Answered
    • 3 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CE display rule apply to a view C#

    Ivan Petrov
    Ivan Petrov
    Hi I'm trying to implement a feature to "isolate" elements in drawings. (like on explorer form) my plan is next: 1. Create a display rule foreach (var elementId in elementIdToIsolate) { var elementsConditions = $"element.DgnElementSchema::GraphicalElement…
    • 8 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++ U16.2] Item Type iteration fails

    Manuel Höger
    Manuel Höger
    Hello all, I want to iterate over all Itemtypes in a all Libraries but I get an Memory Exception in the second iteration in following Code: try { ItemTypeLibraryPtr itemTypeLibrary = ItemTypeLibrary::FindByName(libName.c_str(), *ISessionMgr…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Ed. 10.15.00.74 C# Addin] VS2019 Commands key-in not loading when following the basic example in the wiki

    Gary Shay
    Gary Shay
    I'm following the steps to create a new MDL addin using C# and I'm having an issue with getting the commands.xml to be recognized. VS 2019 (recommendation says for the below version to load VS2017 or higher for .NET programming) Microstation CE 10.15…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect Up15 c++] Is it possible to click once to place element, pop up UI box, and second click to confirm modification?

    amender carapace
    amender carapace
    Hello all, I am practicing DgnElementSetTool So far I am able to use _OnDataButton() to place a element. I have the UI box pop up with start of command and could modify the element before I place it with a click. I use _OnDynamicFrame to show effect…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • mdlKISolid_minimumDistanceBetweenEntities function in VBA

    Artem Ramazanov
    Artem Ramazanov
    Hello! I work in Microstation vi8 and trying to call an MDL function (mdlKISolid_minimumDistanceBetweenEntities function) in MVBA, but it return "0". Could you help me to solve this problem? Maybe there is a mistake in types of variables. My code below…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • File cannot be encrypted using File-> Save option

    Arul Kulandaivel
    Arul Kulandaivel
    Actually, we are having the encryption logic at the below function, SystemCallback::SetFileSaveFunction -->DgnSaveReason::UserInitiated -->DgnPlatform::ProcessChangesWhen::AfterProcessing In setSavefileaction system callback function, we were not…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How do we create ribbon file tab customization

    Arul Kulandaivel
    Arul Kulandaivel
    We need create unique menu to the other users the ribbon customization tab with group of labels. while group of labels or label button Clicked then the event connected to our custom dialog(*.rc) to load/display in the MicroStation main window. How do…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to get window main handle?

    Rajesh Varatharajan
    Rajesh Varatharajan
    My code is as follows: #include <Mstn\MdlApi\MdlApi.h> #include <Mstn\cmdlist.r.h> #include <Mstn\MdlApi\msnativewindow.h> #include <windows.h> #include <DgnPlatform\DgnFile.h> #include <DgnPlatform\DgnFileIO\DgnFileIOApi.h> extern "C" DLLEXPORT void…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Load MDL app on Application Startup (MS_INITAPPS)

    Rajesh Varatharajan
    Rajesh Varatharajan
    I am facing some issues in Successful loading MDL apps on Startup. I have modified code as below and loaded MDL app. if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0) { mdlSystem_enterGraphics(); mdlInput_sendCommand(CMD_DIALOG_OPENFILE…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • how to render solar light shadow to dgn file

    X Qs
    X Qs
    hello, i'm studying how to generate shadow of a solid exposed by solar light. i have got the interface of the default solar, and createed a new one to adjust some parameters, while i cant find the shadow in dgn file. i guess the shadow isnt rendered…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Detecting a Cached Saved View Attachment in MicroStation CONNECT

    Peter Jones
    Peter Jones
    Hi All, I have some legacy VBA code from v8i that I'm trying to port over to the CONNECT versions - it's using a CExpression with a pointer into the referenceFile struct for a specific reference: Private Declare PtrSafe Function mdlRefFile_getInfo…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect C++] How to get the color of an element?

    Mario Pîrău
    Mario Pîrău
    Hello, I have a problem while retrieving the colors of the different geometric parts of an element. For parsing the geometry I'm using the IElementGraphicsProcessor to process the element and retrieve the different graphic primitives types (SolidPrimitives…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • microstation sdk v8.11 - navigating programmatically through surface type 18

    Roberto Cardosi
    Roberto Cardosi
    Dear all, good day. I have a cell containing an element of type Surface(18). I cannot understand how to navigate through its subelements. Here it is visual basic code: Public Sub NavigateThroughSurface( ByVal oApplication As Bentley.Interop.MicroStationDGN…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect C++] list with all the "class name" types of an element

    Stefano Beccaletto
    Stefano Beccaletto
    Hi, Is there a way to get all the class name types that identify elements? Typically for gathering the class name I'm using the following commands: for (DgnECInstancePtr instance : ecMgr.FindInstances(*scope, *ecQuery)) { DgnElementECInstanceP elemInst…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Draw Sections along center line and offset to centerline (C# Programming for microstation V8 2004)

    Manoj_Pal
    Manoj_Pal
    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…
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Re: Error CreateComplexShapeElement1 with only ArcElements

    OrionCarrier
    OrionCarrier
    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…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i c#] Is there a API to merge two files

    thangaraju s
    thangaraju s
    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(…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • mdlKISolid_getSurfaceElements() crashes for a particular element, throwing a stack overflow exception

    Ronn Greer
    Ronn Greer
    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…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Help for API to fetch DGN V8 DRV data records for an Element.

    Manu Agarwal
    Manu Agarwal
    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?
    • Answered
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to convert solid clockwise sense bspline surface boundaries to hole clockwise sense?

    kaab
    kaab
    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 &…
    • Answered
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i C++] Is Visual Studio 2005 still the preferred way to go?

    Andrew Lowe
    Andrew Lowe
    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…
    • Answered
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8 C++ API] Difference between getIsDisplayedFlag() and getIsHiddenFlag() for Levels?

    Manu Agarwal
    Manu Agarwal
    Also how does one define whether Element in a Level is visible or not? Does it depend on LevelOverride flags?
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i c#] Open design file needs delay

    thangaraju s
    thangaraju s
    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…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
>