Browse By Tags

  • Dgn file hash.

    I am writing an application for MicroStation and ORD under c# I plan to cache specific data to improve the application's startup speed following a session involving a file. In light of this, having access to a file hash would be extremely helpful. Does…
  • accessing the information of the dgn without reading the references with IModel ODBC Driver

    how to get data of dgn model without references another dgn files with ODBC Driver
  • [C#, ORD 10.12] To change the display style of Eement.

    Hi. I need to change the display style of a element to wireframe. My goal is that view and element have different display style. Do anyone know how to do change display style of element in C# API? Thank you.
  • How to use aaApi_StartPartnerApplication ?

    Hello, I am looking for a solution to view a dgn document from ProjectWise CONNECT Edition (3.299) into Microstation CONNECT (Update 17) without checking out the document, but still be able to modify or add references to the opened document in Microstation…
  • Draw active Point using "Application.create..."

    Hi community, newbie here. Trying to get into Microstation and coding after almost 20 years. I am coding a point importer and manipulator and trying to draw a point into the DGN using the "Application.create..." function however don't seem to find the…
  • Any example macros for OpenRail CONNECT? Want to read start stop points and project a spatial Template along sections of the imported alignment.

    Are there any example programs or libraries available for OpenRail CONNECT? Bit like the old VBAExample.zip We need to create a macro that reads start stop points and projects a spatial template along sections of the imported alignment. Guess we need…
  • [CONNECT Update 16 C#] Ellipse to arcs conversion

    Hello, I need to convert ellipses with different Primary and Secondary Axis to multiple arcs with the same Primary and Secondary Axis. In Microstation I can do that using Facet tool but I need to achive the same result doing it programatically. …
  • Importing Bill of Materials Columns Mapping Set up

    Hi All, I am operating Bentley Open Utilities Substation V8, I'm trying to look how to import Bill of material excel file in a specific substation folder, but I don't know the correct information to fill up the columns map, if someone already tried…
  • Need to detect workset name prior to opening a drawing

    Is it possible to detect the workset name prior to attempting to open a drawing? This would allow us to throw a processing error quickly rather than having our processing script stall. We are using the Connect .net interop assemblies (external independent…
  • C# MS16 .NET Attach and edit item types to a model

    Hello All Using C# I can create item types and attach them to elements, but cannot see how to attach an set of ItemType properties to a dgn model? I can get to the model as a DgnModel and ModelInfo I can get to my ItemTypeLibrary and ItemType …
  • [CONNECT Update 15 C++] ScaleRotateTextCell example crashes when clicking any function button on it, am I using it wrong or is it bugged?

    It is a example under C:\Program Files\Bentley\MicroStationCONNECTSDK\examples\Elements\ScaleRotateTextCell I can successfully bmake ( \ScaleRotateTextCell > bmake -a ) the example and load it via utility. but crashes the microstation program when…
  • BentleyView Initialization in C#

    Hi, I am trying to initialize BentleyView application in my C# Class Library using 'Bentley.Interop.MicroStationDGN'. Following is the snippet I am using: private Application application; public Class1() { ApplicationObjectConnector…
  • log4net error when calling mdlSystem_newDesignFile in MicroStation 10.15.00.74

    All, We have a legacy MicroStation application which has been problem-free but which was recently tested running on MicroStation 10.15.00.74. The application runs as an INITAPP and never calls mdlSystem_enterGraphics. Upon calling mdlSystem_newDesignFile…
  • add a reference that should be translated and clipped

    How exactly can i get the modelRef after begin attachment ? I'm trying with: modelRef = builder.GetDgnAttachmentCP()->GetDgnModelP(); but the reference is not translated nor clipped, so i suppose that's the problem (the only difference from v8i…
  • [CONNECT] set callback function when KEYIN queue element processed

    I develop plugins for the OpenCities Map PowerView CONNECT Edition application with C++. From one of my plugin I use the mdlInput_sendKeyin() function to trigger a feature in another plugin developed by me also. I want to log every keyin commands which…
  • Error: "Cannot save changes to VBA project 'Support' because it is read-only"

    Product(s): MicroStation Version(s): 10.14.00.86 Environment: N\A Area: Programming Subarea: VBA Problem When starting and closing MicroStation a following error message is shown: "Cannot…
  • How to activate particular parametric set/variation?

    Microstation Connect Edition Update 14 - C++ Native - SDK In a particular model, I have added one variation/Parametric set using API - (IDgnComponentDefinitionModelHandler) -> CreateParameterSet(). I have also created associated variables with this…
  • [CONNECT C#] Load a Workspace

    Hi, I want to load an existing workspace. It already works with an existing workset. using BD = Bentley.DgnPlatformNET; using BM = Bentley.MstnPlatformNET; // Load Workset BM.Internal.WorkSpaceManager.ActiveWorkSet.WorkSetInfo.Name = myWorksetName;…
  • [CONNECT/(V8i); VBA/C#] Using C# DLLs in a VBA-Project

    Hello, I have a question. Is it possible to make a C# DLL usable in a VBA project and if yes, how? We already tried with the following Link: https://www.geeksengine.com/article/create-dll.html But in that example you have to move a file in to…
  • [CONNECT C#] After ElementPropertiesSetter the Element is locked

    After using ElementPropertiesSetter, the respective element is locked and cannot be unlocked in the MicroStation afterwards. Did I forget something? public bool SetElementLevel(BDE.Element element, string levelName) { try { BD.LevelId levelId…
  • VBA Integration with Applications

    VBA is installed together with the main product like MicroStation and the VBA IDE is fully integrated and reachable from the menu structure. In the MicroStation CONNECT generation VBA is integrated in the new Ribbon menu, the Macros Ribbon provides…
  • VBA Macro "FENCE FILE" Does not working properly

    Hi, I'm using this forum a lot to answers my doubts with old posts (thank you a lot), however I don't found nothing about it. I'm creating a macro to create a new .dgn file using Fence File (part of drawing that I need). For do it manually is working…
  • Why can I not see the SDK download?

    Is it something that you have to pay extra for? I am on connect update 13
  • Bulk fillet linestring via script file or VBA

    I am working on viaduct post tensioning & have managed to plot a 3D smart line for the tendons (~700 done automatically) but I am now trying to add fillets to them via a macro or VBA to bulk fillet each line based on a dynamic radius. For example end…
  • Looking for LOW VOLTAGE CIRCUITS solution

    Hi there, Is there any chance to find a sustainable solution to create high grade documentation of LOW VOLTAGE CIRCUITS? My vision is to create electric diagrams, BOMs tied to model. I got couple of ideas to share, dead-ends reached and mind open…