Browse By Tags

  • Create New DGN On ProjectWise

    Hello everyone, I'm facing an issue while attempting to create a new DGN file directly within ProjectWise. I've successfully managed to create DGN files on my local drive using different approaches. However, I'm struggling to replicate this process…
  • Microstation and ProjectWise Integration

    Hello everyone, This discussion is not new but still, I am not getting things in place even after looking at several threads here. I so thought to post a new one. I'm facing some challenges in achieving a specific task using Microstation CE and…
  • [CONNECT C++] Example of SQLite

    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?
  • Addin Setup Guide

    Hi Community, I am a beginner in Microstation API programming, I have gone through some of the resources available and am able to create my first MDLCommand in .NET C# which does a set of tasks in the Microstation. I still have some doubts on the…
  • [CONNECT C++] MicroStationAPI Documentation: NEEDSWORK_VANCOUVER_DOC

    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…
  • CE display rule apply to a view C#

    Hi I'm trying to implement a feature to "isolate" elements in drawings. (like on explorer form) my plan is next: 1. Create a display rule foreach (var elementId in elementIdToIsolate) { var elementsConditions = $"element.DgnElementSchema::GraphicalElement…
  • [CE MDL/C++] Problems with mdlElmdscr_stroke

    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…
  • CONNECT Edition (10.15.00.74) Migrate to C++ from MstnJ - cannot find mdlResource_loadFromStringList

    Hi, Working on migrating an application from interpreted MDL (written in MicrostationJ and ported to V8i SS3). I'm slogging through the code to get a clean compile and am having problems figuring out how to handle the string list messaging that was…
  • [CONNECT C++ U16.2] Item Type iteration fails

    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…
  • [CONNECT Ed. 10.15.00.74 C# Addin] VS2019 Commands key-in not loading when following the basic example in the wiki

    I'm following the steps to create a new MDL addin using C# and I'm having an issue with getting the commands.xml to be recognized. VS 2019 (recommendation says for the below version to load VS2017 or higher for .NET programming) Microstation CE 10.15…
  • [CONNECT Update 16.0 C++] Microsoft resource compiler switch

    bmake lets us define a C++ compiler switch like this... nameToDefine=_UNICODE %include $(MDLMKI)cdefapnd.mki Macro MDLMKI points to the SDK \mki folder. Those lines mean... Assign value _UNICODE to macro nameToDefine Call the make include…
  • [CONNECT Update 16 C++] Tag Increment

    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…
  • [Connect Up15 c++] Is it possible to click once to place element, pop up UI box, and second click to confirm modification?

    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…
  • mdlKISolid_minimumDistanceBetweenEntities function in VBA

    Hello! I work in Microstation vi8 and trying to call an MDL function (mdlKISolid_minimumDistanceBetweenEntities function) in MVBA, but it return "0". Could you help me to solve this problem? Maybe there is a mistake in types of variables. My code below…
  • [CONNECT C++] MSDialog::GetItemPtrByTypeAndId Documentation

    The MicroStationAPI help documentation for MSDialog::GetItemPtrByTypeAndId is messed up... template T GetItemPtrByTypeAndId (RscType type, RscId id, MdlDescP ownerMD=NULL, int startingIndex=0, bool searchChildren=false) References GetItemByTypeAndId…
  • [CONNECT C++] Write to MicroStation's Text Window from InitApp.

    How do I write text to MicroStation's text window from a non-interactive app (i.e. an InitApp )?
  • File cannot be encrypted using File-> Save option

    Actually, we are having the encryption logic at the below function, SystemCallback::SetFileSaveFunction -->DgnSaveReason::UserInitiated -->DgnPlatform::ProcessChangesWhen::AfterProcessing In setSavefileaction system callback function, we were not…
  • How do we create ribbon file tab customization

    We need create unique menu to the other users the ribbon customization tab with group of labels. while group of labels or label button Clicked then the event connected to our custom dialog(*.rc) to load/display in the MicroStation main window. How do…
  • How to get window main handle?

    My code is as follows: #include <Mstn\MdlApi\MdlApi.h> #include <Mstn\cmdlist.r.h> #include <Mstn\MdlApi\msnativewindow.h> #include <windows.h> #include <DgnPlatform\DgnFile.h> #include <DgnPlatform\DgnFileIO\DgnFileIOApi.h> extern "C" DLLEXPORT void…
  • Load MDL app on Application Startup (MS_INITAPPS)

    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…
  • [CONNECT MicroStationAPI] Documentation of DisplayPath contains duplicate information

    The MicroStationAPI help doc. has a useful description of Display Path... The first few paragraphs (up to subsequent entries in the path ) are duplicated.
  • [Connect C++ MicrostationApi] Problem with changing textelement in cell

    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…
  • how to render solar light shadow to dgn file

    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…
  • [CONNECT C++] ECObjectsStatus Clarification

    When writing code that footles with ECObjects the ECObjectsStatus enum provides a large set of error codes. It seems I'm often able to write code that results in one of those errors. Most are self-explanatory, but one or two are enigmatic. Could someone…
  • [CONNECT C++] Locate Tool: locate closed curve

    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…