Browse By Tags

  • [CONNECT C++ and .NET] UnitDefinition.GetName ()

    Both C++ and .NET provide method UnitDefinition.GetName (bool singular, bool alsoStandard) . What is the purpose of arg alsoStandard ?
  • [CONNECT .NET] Disable 'No Workset Alert'

    My AddIn processes a list of DGN files. For each file, it uses Session.NewDesignFile() . In many cases, that pops modal dialog No Workspace Alert ... I want to eliminate that dialog so the list can be processed with no human intervention. In another…
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Hello, I wanted to catch messages from notification panel of microstation. I can catch messages with green underline with AddIn.MessageCenterWriteEvent. But I can't catch message with red underline. I found NotificationAdministrator with description…
  • [C#, VB.net CONNECT Update 13] CreateDesignFile method causes an exception

    Gents, I’m looking for solve an issue that occur in the following conditions: a WPF Microstation Connect AddIn developed in C# is running an external application (developed in vb.net) call the method Application.CreateDesignFile as follows: …
  • [CONNECT .NET] FindInstancesScope

    SDK example DgnECManagedEvents has this... public DgnECInstanceCollection FindInstances (ECQuery query) { FindInstancesScope scope = FindInstancesScope.CreateScope (GetDefaultModel(), new FindInstancesScopeOption ( DgnECHostType.All & ~DgnECHostType…
  • [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…
  • Hints for troubleshooting machine-specific issues / errors

    Product(s): WaterCAD, StormCAD, WaterGEMS, SewerCAD, Hammer, CivilStorm, SewerGEMS, PondPack, Flowmaster, Culvertmaster Version(s): V8i, Connect Edition Area: Installation Problem What things should I check in case I understand…
  • [CONNECT .NET] CurveLocationDetail

    Using MicroStation CONNECT Update 15, I'm attempting to convert this C++ function to C#... size_t GetCloseVertex (CurveLocationDetailCR location) const { size_t nSegments = 1; if (ICurvePrimitive::CURVE_PRIMITIVE_TYPE_LineString == location.curve…
  • Microstation V8I .NET exception after undoing dropped element

    Hello! I´m getting .NET exception on Microstation V8I Selectseries 4 (08.11.09.867) [using bentley map 08.11.09.862] with strange behavior. It happens when I try to drop my complex elements (features). Of course to accept the drop operation, a window…
  • [CONNECT .NET] Convert between DRange3d and ScanRange

    The MicroStationAPI provides functions that convert between a ScanRange and a DRange3d ... mdlCnv_dRange3dToScanRange() mdlCnv_scanRangeToDRange() I can't see an equivalent conversion method in the .NET API. Have I missed something?
  • [CONNECT .NET] How do I use DEllipse3d.TryCircularFilletBetweenRays?

    I'm writing C# code for MicroStation CONNECT Update 14. I would like to emulate MicroStation's Construct Circular Fillet command. How do I use DEllipse3d.TryCircularFilletBetweenRays ? Or, more accurately, how do I persuade it to behave as the documentation…
  • [CONNECT .NET] How do I use CurveVector.CloneWithFillets?

    How does CurveVector.CloneWithFillets work? Both the MicroStationAPI and DgnPlatformNet documentation are, as usual, enigmatic. There is no example delivered with the SDK. I wrote this test code. It creates a pair of intersecting lines... Then attempts…
  • [CONNECT .NET] CurveChain Conundrum

    I am using MicroStation CONNECT Update 14.2. I am coding a tool using the DgnPlatformNet and BentleyGeometryNET APIs. Wanting to experiment with the CurveChain class, I wrote this... CurveChain chain = new CurveChain (); To my astonishment, Viz…
  • C#.net - Fillet between 2 Dsegment3D

    how to create Fillet between 2 DSegment3d? and How do can I Chain all of them together inC#.net?
  • [CONNECT .NET] how do I Add a TextStyle to a DgnFile?

    DgnFile.GetTextStyles() returns a collection of text styles. How can I add new styles to that list and then assign the list to the active DGN file? There's no method like DgnFile.SetTextStyles(TextStyleCollection styles) that I can see.
  • [MicroStation 10.14 C#] Create Note dimension element text

    Referencing a previous post about creating dimension elements in C#: https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/112608/c-connect-how-to-create-dimension-elements I've been trying…
  • [CONNECT .NET] Create TextTable from Seed part 2

    Despite advice received elsewhere , I have been unsuccessful in my attempt to clone Paul Connelly wrote: Given your stated goal, CloneAsSeed() is what you want . I'm struggling. Here's a C# method that is supposed to clone a table seed... TextTable…
  • [CONNECT .NET] DgnElementSetTool.DoLocate

    DgnElementSetTool::DoLocate Method has three arguments. The third argument is int complexComponent . complexComponent is not well-documented. Does it take the same values as ComponentMode found in the MicroStationAPI?
  • [CONNECT .NET] MdlApplicationClass

    The MicroStationAPI provides mdlSystem_getMdlAppClass/mdlSystem_setMdlAppClass that inform how the app was loaded (USER, DGNAPP, etc) in one of the MdlApplicationClass enum values. I can't see a .NET equivalent in the MstnPlatformNET.
  • [CONNECT .NET] Problem starting .NET AddIn on earlier version of MicroStation

    I developed an AddIn using the .NET API delivered with MicroStation CONNECT Update 14.2. The AddIn works fine on my computer. When customer attempts to load the AddIn using MicroStation CONNECT Update 10, it fails. The full error dump is attached, but…
  • [CONNECT .NET] SelectionSetManager Events

    The MicroStationAPI provides event handlers for the SelectionSetManager class... void AddListener (ISelectionEvents *selectionListener); void DropListener (ISelectionEvents *selectionListener); The .NET API omits those handlers. Can I request that…
  • "Accessing to the Path "c:\..." is denied"...unhandled exception - Microsoft .NT Framework message appeared when reviewing the Results grids in AutoPIPE, why?

    Applies To Product(s): AutoPIPE Version(s): ALL; Area: Grids Date Logged & Current Version Sept 2020 12.04.00.13 Problem: When trying to review the results grids, the following message appears: Why and how…
  • "Object reference not set to an instance of an object" - Microsoft .NET Framework message appears when using OPIM and AutoPIPE

    Applies To Product(s): AutoPIPE Version(s): ALL; Area: licensing Date Logged & Current Version Sept 2020 12.04.00.13 Problem: The following appears when trying to use AutoPIPE and OPIM to modify a stress isometric…
  • "Microsoft .NET Framework".. messages displayed in AutoPIPE

    issues related with similar dialog headings: Unhanded exception... Accessing to the Path "c:\..." is denied Unhandled exception... Object reference not set to an instance of an object Unhandled exception... Exception of type "System…
  • [CONNECT .NET] How does MicroStation find assemblies?

    My .NET AddIn uses a third-party assembly Newtonsoft.Json . If you need to read or write JSON files, it's a very useful addition to your toolkit. If I build my app as usual, then load and run it in MicroStation, I get an error: 'Cannot load Newtonsoft…