• [CONNECT Update 16] GetStringFromMstnResource

    Jon Summers
    Jon Summers
    I notice that the .NET Session class has member GetStringFromMstnResource . It looks like that function gets a string from a message list stored in a .rsc file, which is what we've done for MDL and C++ apps for donkey's years. In a .NET AddIn , how…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT] Tool Development

    Jon Summers
    Jon Summers
    dominic SEAH asked: "Will the SDK also cover the Tech Preview tools or will this be after they go to commercial release?" The CONNECT SDK provides a set of classes that derive from DgnPrimitiveTool . Several supplied classes inherit from that base class…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++/.NET] TextBlock Help

    Jon Summers
    Jon Summers
    Both the DgnPlatformNet and the MicroStationAPI help documents provide terse information about the TextBlock class. Concealed in the MicroStationAPI help document are some examples that show how to use the TextBlock API. However, they are cunningly…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 ElementAgenda] Why can't .NET ElementAgenda Draw its contents?

    Jon Summers
    Jon Summers
    Jan made this comment in another thread: It is one of the disadvantages of NET API, because in C++, RedrawElements accept also ElementAgenda . Why doesn't the .NET ElementAgenda implement the Draw() method that C++ provides?
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect .NET] Problems when using dark themed UI

    EvanH
    EvanH
    Hi When using dark themed UI I get some problems in WinForms dialogboxes including DataGridView items: The background is still white so only the hilited field is readable. This is tested in update 15 and 16.1. What can I do to fix this problem or…
    • 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
  • [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
  • [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
  • [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
  • [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
  • [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
  • [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
  • [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
  • [CONNECT C++ and .NET] UnitDefinition.GetName ()

    Jon Summers
    Jon Summers
    Both C++ and .NET provide method UnitDefinition.GetName (bool singular, bool alsoStandard) . What is the purpose of arg alsoStandard ?
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] Disable 'No Workset Alert'

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Damian Holubowski
    Damian Holubowski
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C#, VB.net CONNECT Update 13] CreateDesignFile method causes an exception

    Paolo Cherubini
    Paolo Cherubini
    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: …
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] Get In-Memory Element from COM Impossible

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] Convert between DRange3d and ScanRange

    Jon Summers
    Jon Summers
    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?
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] How do I use DEllipse3d.TryCircularFilletBetweenRays?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] How do I use CurveVector.CloneWithFillets?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
>