Browse By Tags

  • Text movement

    [MicroStation CE 16]I have created a circle with some text inside it and a line associated with it (Its like annotation, it is annotating some selected element's information in it) and I want to move whole annotation(Circle, Text, and line) along with…
  • Creating of circle from edge

    [MicroStation CE 16 (C#) ]How to create a circle using edge point instead of creating from the center in C#
  • [CONNECT Update 16 .NET] PolyfaceBuilder

    I am contemplating how to construct a mesh using the .NET API. From the C++ examples, it looks like I should... Create a PolyfaceHeader Use MeshHeaderHandler::CreateMeshElement( ..., PolyfaceHeader, ...) However, the .NET API doesn't match the…
  • [CONNECT Update 16 .NET] BGNet classes

    Another sleepless night during lockdown, and as I browsed the .NET BentleyGeometryNet documentation I came across two classes... BGNetFactory BGNetToCommonGeometry As usual, the .NET documentation is terse. I don't see an obvious equivalent…
  • [CONNECT Update 16 .NET] Questions about MstnPlatformNet and WPF

    The MstnPlatformNET help doc mentions several classes in namespace Bentley.MstnPlatformNET.WPF . The purpose of some classes is self-evident, but many defy immediate understanding. The two WPF examples don't reveal a lot. Here are a few questions about…
  • "Exception of type "System OutOfMemoryException" was thrown" - Microsoft .NET Framework message appears when using AutoPIPE and / or OPIM, why?

    Applies To Product(s): AutoPIPE Version(s): ALL; Area: Message Date Logged & Current Version Aug. 2021 12.06.00.48 Problem: The following appears when trying to use AutoPIPE and OPIM to modify a stress isometric…
  • [CONNECT Update 16 .NET] Is view active?

    MDL provides mdlView_isActive(int viewNum) . The C++ MicroStationAPI provides Viewport.IsActive() . How do I find if a view is on (active) using .NET?
  • Intercept Paste Event

    Hello guys, I'm new to Microstation Programming. I'm currently trying to develop a plugin (.net, c#) for Microstation Connect that intercepts the "Paste" event (from clipboard) and, based on a specific logic, blocks the operations (or undoes the paste…
  • [CONNECT Update 16 .NET] PickListProviderManagedExample

    The SDK delivers .NET example DgnEC\PickListProviderExample . I can build that example successfully. However, I don't understand what it does. The two commands have little visible effect. The AddIn has a WPF user interface, but neither command shows that…
  • [CONNECT Update 16 .NET] DgnAttachment.AsDgnModel() returns null

    I have a DGN model that references a single model in another file. I'm enumerating attachments like this... DgnAttachmentCollection attachments = model.GetDgnAttachments(); foreach (DgnAttachment attachment in attachments) { DgnModel m = attachment…
  • 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 .NET] Builder class

    What is the purpose of the BentleyGeometryNet.Builder class? I don't see an equivalent class in the MicroStationAPI help — if it were documented there then I could glean more information. Some methods I can guess at, but several of them mention a Mask…
  • C# .NET MS Update 16 View Attributes for Markers

    Using C# .NET MicroStation Update 16 I am looking to control the display of Markers in the View Attributes of each of the 8 views. Interop...Utilities.ComApp.ActiveDesignFile.Views[1]. gives me access to Fill On, Text On etc but no the Markers On…
  • [CONNECT UPDATE13 .NET] UnloadAddIn

    OS: Windows 10 Application: MicroStation Connect Edition update 13 - v10.13.01.01 Language of the Application: C# .NET Framework: 4.7.2 Goal: To unload the AddIn when MicroStation Connect closes a file. Workflows to support: Workflow 1…
  • [CONNECT .NET] DgnTextStyle.AddToElement

    The .NET API provides the DgnTextStyle class, which is mostly analogous to the C++ DgnTextStyle class. However, the .NET class additionally supplies this... public StatusInt AddToElement( Element element, uint key ) What happens if I add a text…
  • [CONNECT V10.14.02.01 .NET] Get CurveVector of a ParametricCellElement

    All, I'm trying to get the CurveVector of a ParametricCellElement I've created so that I can use to extrude the shape using DgnExtrusionDetail. for the extrusion I use the following code, which works when I create a LineStringElement as test case: DPoint3d…
  • [CONNECT .NET] WinForms.Adapter.Restore()

    The WinForms.Adapter class is used as a base class for an AddIn's Form . It provides a Restore() method, but its purpose is not documented. I already wrote my own Restore() method whose purpose is to show a minimised Window in its previous state...…
  • Crash when selecting Documents folder. Looking for missing dll.

    I have a menu extension that adds a menu item to the ProjectWise context menu. When the user selects the Documents folder at the top of the hierarchy ProjectWise exits. Looking that the debug of the process it is failing with a FileIOMissing File exception…
  • [CONNECT V10.14.02.01 .NET] Change origin of ParametricCellDefinitionElement while placing instance

    Is it possible to change the origin of a ParametricCellDefinitionElement while placing a new ParametricCellElement using said definition? What i'm trying to achieve with this is the ability to anchor the cell's different corners to the cursor, without…
  • [CONNECT .NET] Correctly using IDisposableEnumerable<DisplayRuleSet>

    DisplayRulesManager.GetDisplayRuleSetsInFile(DgnFile) returns a list of IDisposableEnumerable<DisplayRuleSet> . Class DisplayRuleSet implements IDisposable . Note that IDisposableEnumerable is part of the MstnPlatformNET API. It's not part of Microsoft…
  • [MSCE U16 C#] Create custom group for "Include Items" in Microstation's Report

    Introduction We have introduced groups for selecting items in the Reports->Included Items tab->ItemTypes property. When you click on the "Select an Item Type.." drop-down of "Item Types" dialog, a pop-up appears with groups of Items like "Item Types…
  • Macros - ProSteel V8i

    Product(s): ProSteel Version(s): V8i Area: Macros Subarea: N/A Original Author: Johannes Michalowsky, Bentley Product Advantage Group Updated By: Vyanktesh Nama, Bentley Product Advantage Group…
  • [CONNECT .NET] Get value of MicroStation global variable

    MicroStation CONNECT continues to use public global variables. The one that interests me at the moment is mgds_modes . It's defined in header file MicroStation.r.h and declared extern in dloadlib.h . With C++, I can use such a variable simply by including…
  • [PW Explorer CONNECT] Can I copy out or check out a DGN document without its references?

    aaApi_CopyOutDocument() does what it says on the tin. However, for the task we are implementing there's a lot of baggage that goes with it. For example, the project has a lot of large DGN files and each file has several large attachments. The task is…
  • [CONNECT .NET] Session.NewDesignFile

    Session.NewDesignFile() returns an int . What is the meaning of that value? What value does it return if the file is successfully opened?