• [CONNECT C++] Example of SQLite

    Jon Summers
    Jon Summers
    The C++ MicroStationAPI provides an interface to SQLite . For example, BeSqlite.h . There is no example of SQLite, unfortunately. Would somebody like to write one?
    • Answered
    • 2 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] MicroStationAPI Documentation: NEEDSWORK_VANCOUVER_DOC

    Jon Summers
    Jon Summers
    Many StateFunc_ functions have incomplete documentation. For example... typedef void(* StateFunc_DragInit)(DPoint3dCP point, int view) UserFunction called when NEEDSWORK_VANCOUVER_DOC. Parameters [in] point NEEDSWORK_VANCOUVER_DOC [in] view NEEDSWORK_VANCOUVER_DOC…
    • 4 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CE MDL/C++] Problems with mdlElmdscr_stroke

    EvanH
    EvanH
    Hi I want to stroke a complex chain element and into an array of points. In V8i I used the function mdlElmdscr_stroke: #define SCALE (mdlModelRef_getUorPerMaster(MASTERFILE)) if (mdlElmdscr_stroke(&pptdPts, &iVertices, pedCurve, 2.0 * SCALE) == SUCCESS…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++ U16.2] Item Type iteration fails

    Manuel Höger
    Manuel Höger
    Hello all, I want to iterate over all Itemtypes in a all Libraries but I get an Memory Exception in the second iteration in following Code: try { ItemTypeLibraryPtr itemTypeLibrary = ItemTypeLibrary::FindByName(libName.c_str(), *ISessionMgr…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] Tag Increment

    Jon Summers
    Jon Summers
    When using the copy-and-increment command, MicroStation help tells us: Tag Increment : The amount by which the numeric part of the text element is increased (can be any integer between -32768 and 32767, inclusive). That is, the increment value is a signed…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect Up15 c++] Is it possible to click once to place element, pop up UI box, and second click to confirm modification?

    amender carapace
    amender carapace
    Hello all, I am practicing DgnElementSetTool So far I am able to use _OnDataButton() to place a element. I have the UI box pop up with start of command and could modify the element before I place it with a click. I use _OnDynamicFrame to show effect…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Load MDL app on Application Startup (MS_INITAPPS)

    Rajesh Varatharajan
    Rajesh Varatharajan
    I am facing some issues in Successful loading MDL apps on Startup. I have modified code as below and loaded MDL app. if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0) { mdlSystem_enterGraphics(); mdlInput_sendCommand(CMD_DIALOG_OPENFILE…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect C++ MicrostationApi] Problem with changing textelement in cell

    Manuel Höger
    Manuel Höger
    Hello, I am trying to change the Text of a cell with the Microstation C++ Api. The Code I am using is working well on normal Text Elements. But in a Cell the "ReplaceInModel" returns an Error (69645) void TextTool::textChange(EditElementHandleP…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • how to render solar light shadow to dgn file

    X Qs
    X Qs
    hello, i'm studying how to generate shadow of a solid exposed by solar light. i have got the interface of the default solar, and createed a new one to adjust some parameters, while i cant find the shadow in dgn file. i guess the shadow isnt rendered…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] Locate Tool: locate closed curve

    Jon Summers
    Jon Summers
    I can write a locate tool that enables a user to pick a closed curve (e.g. a DGN shape element). The user must datapoint a line or curve that defines the perimeter of the shape. How can I write a tool that enables a user to pick that same closed curve…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] DgnElementSetTool::_SetLocateCriteria

    Jon Summers
    Jon Summers
    There are no examples that show how DgnElementSetTool::_SetLocateCriteria should be used. The MicroStationAPI doc says: Called from BeginPickElements and BuildAgenda to setup modelRef search list. If _IsModifyOriginal then mdlLocate_normal and mdlLocate_allowSelfRefs…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect C++] How to get the color of an element?

    Mario Pîrău
    Mario Pîrău
    Hello, I have a problem while retrieving the colors of the different geometric parts of an element. For parsing the geometry I'm using the IElementGraphicsProcessor to process the element and retrieve the different graphic primitives types (SolidPrimitives…
    • Answered
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect C++] list with all the "class name" types of an element

    Stefano Beccaletto
    Stefano Beccaletto
    Hi, Is there a way to get all the class name types that identify elements? Typically for gathering the class name I'm using the following commands: for (DgnECInstancePtr instance : ecMgr.FindInstances(*scope, *ecQuery)) { DgnElementECInstanceP elemInst…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i C++] Pick Multiple Elements

    Jon Summers
    Jon Summers
    class PickPointsTool : MstnElementSetTool I want to write a tool using the C++ MicroStationAPI supplied with the V8i SDK. The tool should accept multiple point elements (e.g. cells, zero-length lines). Once user has chosen, say, four or more point elements…
    • Answered
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] ListModel Manager for ComboBox and ListBox Hook Classes

    Jon Summers
    Jon Summers
    The MicroStationAPI DialogItemHookHandler class lets us write simpler hook handlers for MicroStation dialog items. They let you avoid the giant MDL switch statement in your procedural hook handler code. The ComboBox and ListBox dialog items share the…
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] MicroStationAPI ActiveSettings documentation incorrect

    Jon Summers
    Jon Summers
    MicroStationAPI help lists a number of methods under topic Active Settings . For example, static BentleyStatus GetValue (bool &value, ActiveBoolParams paramName) Gets the value of an active MicroStation setting of type boolean However, those methods…
    • Answered
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C#] CellLibraryInfo Performance

    Mark Stefanchuk
    Mark Stefanchuk
    Versions: OpenRoads Designer and SDK Update 4: 10.04.00.48. And MicroStation Update 10 (10.10.00.32 and SDK 10.10.00.23). I am using CellLibraryCollection and CellLibraryInfo to find cells and I've noticed that it is slow - meaning it takes at least…
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] ISelectionEvents::_OnSelectionEvent

    Jon Summers
    Jon Summers
    ISelectionEvents::_OnSelectionEvent has a boolean return value. The MicroStationAPI help says: returns true to stop . True to stop what?
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] AnnotationCellHeaderHandler header file missing

    Jon Summers
    Jon Summers
    A recent post has reminded me that class AnnotationCellHeaderHandler is not published. This applies to CONNECT Update 10 and earlier. Its declaration (header file) is missing from the SDK. That was first noted on this Forum in 2017.
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT MicroStationAPI] C++ Objects and Dialog Items

    Jon Summers
    Jon Summers
    We write an app. that uses the MicroStationAPI using C++. If that app. has a user interface using MSDialog and dialog items then we must communicate via the Dialog Manager . But the Dialog Manager requires us to publish global variables, which don't fit…
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] Is Element a Solid?

    Jon Summers
    Jon Summers
    I'm writing a tool that wants to check whether an element is a solid of some kind. I think that I can do this for a primitive solid (slab, cone, extrusion etc)... const bool DontSimplify { false }; ISolidPrimitivePtr solid = ISolidPrimitiveQuery:…
    • Answered
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] App. version number

    Jon Summers
    Jon Summers
    VersionNumber msVersion { 1, 2, 3, 4}; mdlSystem_setMdlAppVersionNumber (nullptr, &msVersion); I put the above in MdlMain() . When I look at app. details in the MDL Applications dialog, the Version is blank. I notice that most delivered applications…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [CONNECT C++] DependencyManagerLinkage::IRootsChangedCallback

    Jon Summers
    Jon Summers
    Unknown said: YongAn Fu posted a dependency code sample I've written an article about dependency management. It resurrects the BoxDependency example that Mark Anderson wrote in 2001. I've updated the code to use the classes provided in the MicroStationAPI…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Including MicroStation API .h files in build

    HDR_Coder
    HDR_Coder
    I am doing some text manipulation in V8i in C++ and am working with some of the structs. One of those is the FontManager.h, located in a MicroStationAPI folder. I added the following to my mke file: dirToSearch=C:/Program Files (x86)/Bentley/MicroStation…
    • over 7 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CSearchTypes class simplifies Locate and Scan Initialisation

    Jon Summers
    Jon Summers
    We often need to work with a given set of MIcroStation element types when writing an application for locating and scanning elements. For example, we may want to work with lines and line-strings, and therefore want our users to be able to... Locate…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Blog
>