• Text movement

    Varsha Reddy
    Varsha Reddy
    [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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Creating of circle from edge

    Varsha Reddy
    Varsha Reddy
    [MicroStation CE 16 (C#) ]How to create a circle using edge point instead of creating from the center in C#
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 .NET] PolyfaceBuilder

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 .NET] BGNet classes

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 .NET] Questions about MstnPlatformNet and WPF

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • "Exception of type "System OutOfMemoryException" was thrown" - Microsoft .NET Framework message appears when using AutoPIPE and / or OPIM, why?

    Mike Dattilio
    Mike Dattilio
    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…
    • over 2 years ago
    • AutoPIPE
    • AutoPIPE Wiki
  • [CONNECT Update 16 .NET] Is view active?

    Jon Summers
    Jon Summers
    MDL provides mdlView_isActive(int viewNum) . The C++ MicroStationAPI provides Viewport.IsActive() . How do I find if a view is on (active) using .NET?
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Intercept Paste Event

    Mike Paul Darket
    Mike Paul Darket
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 .NET] PickListProviderManagedExample

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 .NET] DgnAttachment.AsDgnModel() returns null

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • C# MS16 .NET Attach and edit item types to a model

    Stephen Holmes
    Stephen Holmes
    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 …
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] Builder class

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • C# .NET MS Update 16 View Attributes for Markers

    Stephen Holmes
    Stephen Holmes
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT UPDATE13 .NET] UnloadAddIn

    Vitor Almeida
    Vitor Almeida
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] DgnTextStyle.AddToElement

    Jon Summers
    Jon Summers
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT V10.14.02.01 .NET] Get CurveVector of a ParametricCellElement

    Remy Moerland
    Remy Moerland
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] WinForms.Adapter.Restore()

    Jon Summers
    Jon Summers
    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...…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Crash when selecting Documents folder. Looking for missing dll.

    Mark Anderson
    Mark Anderson
    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…
    • over 2 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • [CONNECT V10.14.02.01 .NET] Change origin of ParametricCellDefinitionElement while placing instance

    Remy Moerland
    Remy Moerland
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] Correctly using IDisposableEnumerable<DisplayRuleSet>

    Jon Summers
    Jon Summers
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [MSCE U16 C#] Create custom group for "Include Items" in Microstation's Report

    Mangesh.Shelar
    Mangesh.Shelar
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Blog
  • Macros - ProSteel V8i

    Vyanktesh Nama
    Vyanktesh Nama
    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…
    • 11 months ago
    • ProStructures
    • ProStructures Wiki
  • [CONNECT .NET] Get value of MicroStation global variable

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [PW Explorer CONNECT] Can I copy out or check out a DGN document without its references?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • [CONNECT .NET] Session.NewDesignFile

    Jon Summers
    Jon Summers
    Session.NewDesignFile() returns an int . What is the meaning of that value? What value does it return if the file is successfully opened?
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
<>