• Create New DGN On ProjectWise

    Suraj Kumar
    Suraj Kumar
    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…
    • 17 days ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Microstation and ProjectWise Integration

    Suraj Kumar
    Suraj Kumar
    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…
    • 23 days ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • [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
    • 1 month ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Addin Setup Guide

    Suraj Kumar
    Suraj Kumar
    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…
    • 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…
    • 3 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CE display rule apply to a view C#

    Ivan Petrov
    Ivan Petrov
    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…
    • 7 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…
    • 11 months ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CONNECT Edition (10.15.00.74) Migrate to C++ from MstnJ - cannot find mdlResource_loadFromStringList

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

    Gary Shay
    Gary Shay
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16.0 C++] Microsoft resource compiler switch

    Jon Summers
    Jon Summers
    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…
    • Answered
    • over 2 years 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
  • mdlKISolid_minimumDistanceBetweenEntities function in VBA

    Artem Ramazanov
    Artem Ramazanov
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] MSDialog::GetItemPtrByTypeAndId Documentation

    Jon Summers
    Jon Summers
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] Write to MicroStation's Text Window from InitApp.

    Jon Summers
    Jon Summers
    How do I write text to MicroStation's text window from a non-interactive app (i.e. an InitApp )?
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • File cannot be encrypted using File-> Save option

    Arul Kulandaivel
    Arul Kulandaivel
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How do we create ribbon file tab customization

    Arul Kulandaivel
    Arul Kulandaivel
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to get window main handle?

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

    Jon Summers
    Jon Summers
    The MicroStationAPI help doc. has a useful description of Display Path... The first few paragraphs (up to subsequent entries in the path ) are duplicated.
    • 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++] ECObjectsStatus Clarification

    Jon Summers
    Jon Summers
    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…
    • Answered
    • 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
>