• [CONNECT Update 17 C#] Navigating a TextBlock

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [MSCE U16 DgnPlatformNet] Elements stored beyond an "Undo" operation are being replaced by new elements

    Maury
    Maury
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C#] Element.ReplaceInModel

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] Get Configuration Variable Value

    Jon Summers
    Jon Summers
    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…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C#] - Issue with TagElement.ReplaceInModel(null)

    davhum75
    davhum75
    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…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] IAUIDataContext

    Jon Summers
    Jon Summers
    What is the IAUIDataContext ? It's mentioned in DgnPlatformNet help, but with no explanation.
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT] TextField API

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [Connect add ins c#] ElementScanCriteria

    Jon Summers
    Jon Summers
    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…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT DgnPlatformNet] Windows Form Z-order

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [CONNECT DgnPlatformNet] Highlight Element

    Jon Summers
    Jon Summers
    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…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT] Scope of DgnPlatformNet

    Jon Summers
    Jon Summers
    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…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT DgnPlatformNet] How do I spell IViewManager::UpdateView in C#?

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what I expect

    Jon Summers
    Jon Summers
    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…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what I expect

    Jon Summers
    Jon Summers
    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…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [CONNECT DgnPlatformNet] ScanCriteria.SetElementTypeTest doesn't do what I expect

    Jon Summers
    Jon Summers
    Thanks, Bob. I hadn't spotted that the Bitmask is a Bentley.DgnPlatformNET class, nor that it requires its capacity to be calculated.
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • View related content throughout MicroStation Programming
  • More
  • Cancel