• [CONNECT Update 17 C#] Navigating a TextBlock

    TextBlock Class From the DgnPlatformNet help document: In the TextBlock DOM, this is the master object that represents a piece of text as a whole, and is the primary high-level object used to deal with multi-line, formatted text (and is also generally…
  • [MSCE U16 DgnPlatformNet] Elements stored beyond an "Undo" operation are being replaced by new elements

    We are plotting elements and storing them in a List for reference.. What we have noticed is that when the elements are undone, the "IsDeleted" property becomes True and the IsValid property become false as expected.... However, once we add a new element…
  • [CONNECT C#] Element.ReplaceInModel

    While investigating this problem , I came across another. The ManagedFenceExample app (delivered with the SDK) builds an ElementAgenda of the contents of the fence. Then it enumerates the ElementAgenda and applies a transform to each element. Lastly…
  • [CONNECT .NET] Get Configuration Variable Value

    A customer asked: "My problem is having a class that will read a MicroStation config variable." An extended version of this answer is available . DgnPlatformNet The answer is straightforward, once you've (a) asked the right question, and (b) found…
  • [CONNECT C#] - Issue with TagElement.ReplaceInModel(null)

    I'm trying to update the URL for Engineering Links in a collection of DGN files. The problem is that I seam to be creating duplicates of the TAG when writing the updated element back into the model. After processing a file, following the engineering…
  • [CONNECT .NET] IAUIDataContext

    What is the IAUIDataContext ? It's mentioned in DgnPlatformNet help, but with no explanation.
  • [CONNECT] TextField API

    Unknown said: [1 Oct 2012] Development's current indications are that the next Major Release of MicroStation likely will provide a TextField API with the ability to get/set/remove fields via TextBlock. Four years on I see that there is indeed a TextField…
  • RE: [Connect add ins c#] ElementScanCriteria

    Unknown said: I am having trouble using ElementScanCriteria. You don't need to use that COM InterOp with CONNECT. MicroStation CONNECT provides the DgnPlatformNet API that you use with C#. There are a couple of articles here about scanning and enumeration…
  • [CONNECT DgnPlatformNet] Windows Form Z-order

    I have an AddIn whose UI is a .NET Windows Form. The form's default behaviour is to sink below MicroStation's main window when the user clicks in any MicroStation window or dialog. If I call Form.TopMost() , the form sits permanently right on top of all…
  • RE: [CONNECT DgnPlatformNet] Highlight Element

    Unknown said: use: Bentley.DgnPlatformNET.ElementAgendaDisplayable Thanks for that tip! Since it's an undocumented class I don't suppose I would have found it. FWIW, here's the code that highlights an element from outside a state function... private…
  • [CONNECT] Scope of DgnPlatformNet

    Unknown said: Regarding the managed API: you are never going to be able to do *everything* in managed code that you can in native code. A year or two ago, MicroStation CONNECT was introduced to developers as the version of MicroStation that would include…
  • [CONNECT DgnPlatformNet] How do I spell IViewManager::UpdateView in C#?

    The DgnPlatformNet ViewPort class documentation includes this note: To update the view, see IViewManager::UpdateView or IViewManager::UpdateViewDynamic. But IViewManager is part of the C++ MicroStationAPI , not part of DgnPlatformNet . There isn't a…
  • RE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what I expect

    Unknown said: It is not nessessary to call EnsureCapacity before setting the bit Incorrect! A Bitmask seems to have capacity for small bit indices, such as for a line element (type 3) or shape element (type 6). For larger indices, such as a text element…
  • RE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what I expect

    Unknown said: Would this be OK rather than calling Scan for each MSElementType? uint bmSize = 1; foreach (MSElementType type in types) { bitMask.SetBit((uint)type - 1, true); bmSize += (uint)type; } bmSize = (bmSize + 7) / 8; bmSize = (bmSize * 16…
  • RE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what I expect

    Thanks, Bob. I hadn't spotted that the Bitmask is a Bentley.DgnPlatformNET class, nor that it requires its capacity to be calculated.