Browse By Tags

  • [CONNECT Update 16 C++] DgnLink Handlers

    The MicroStationAPI documentation is silent on the process used to create a DgnLink . Example ..\SDK\examples\Miscellaneous\validateSheetLinks shows how to read DgnLInks , but not how to create, edit or delete one. I suspect that the answer lies in…
  • [CONNECT Update 16 C++] DgnLink types

    Here's the DgnLink class hierarchy found in the MicroStationAPI help doc... When one uses the Add Link tool in MicroStation, three choices are offered... URL and From File are covered by the types listed above ( DgnURLLink and DgnFileLink ). But…
  • [CONNECT C++] What are the mdlTable_* and mdlTableEntry_* replacements?

    Hello, In V8i we used to use the mdlTable_* and mdlTableEntry_* functions, all from the table.fdf. In the CONNECT Edition (Update 14) these general functions are missing. In what way can we achieve the same functionality? mdlTable_addEntryDescriptorToChain…
  • [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…
  • [MS Connect C++] How to launch the mdl command to place a note?

    Hello, I'd like to launch the placement command to place a note in my app With the V8i version, I do it like this: mdlInput_sendSynchronizedKeyinFrom(L"PLACE NOTE",true,INPUTQ_HEAD,NULL,FROM_KEYBOARD); This same line generates an exception in…
  • Linear Patterning, Patterns not linked to original element.

    [CONNECT, Update 15, C++] Version: v10.15.02.11 OS: Microsoft Windows 10 Pro, Build 19042.1052, 64-bit Hardware: Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz, 4.00 GB RAM, x64-based processor. I have a function which patterns a linestring drawn by the user…
  • [Connect C++] Avoid the message "No MSCATALOG table exist"

    Hi everybody, When you connect a database in which there's no MSCATALOG table, you have a message dialog: "No MSCATALOG table exist Attachements of database data to ..." and there's an option "Do not display again". I'd like to avoid this dialog…
  • [CONNECT U15 C++] mdlElement_setLineStyle() is broken

    Hi folks, Looks like this function is broken in Connect. If you try to set any modifiers such as custom linestyle scale, then the function returns BSIERROR and mdlErrno is set to zero. Similarly if you try to set the same linestyle name as exists previously…
  • [CONNECT C++ and .NET] UnitDefinition.GetName ()

    Both C++ and .NET provide method UnitDefinition.GetName (bool singular, bool alsoStandard) . What is the purpose of arg alsoStandard ?
  • Get and Set ACS

    Hello, In the SDK is the example "ViewInfoExample". I build it, but it's not working correctly. If I change the Origin of the ACS in any View, the "View Info Description" doesn't show this change. Closing and reopening these windows doesn't help.…
  • InitApp CONNECT Edition

    A MicroStation InitApp is a non-interactive app that is started using the Windows command-line -wa AppName switch, or is listed in the MS_INITAPPS configuration variable. The V8 SDK provides an InitApp example, but it didn't make it as far as CONNECT…
  • [CONNECT C++] _config-eccp.h

    Occasionally, usually when setting up a new C++ project, I see this error from IntelliSense and the C++ compiler: cannot open source file "_config-eccp.h" (dependency of "Mstn/MdlApi/MdlApi.h") . It's sole mention is in include file _config.h ... #if…
  • How to implement SetFileSaveFunction callback function?

    I develop add-on for MicroStation using CONNECT Edition application with C++. Using Microstation10.15 update SDK I would like to get Save event when save triggered. extern "C" DLLEXPORT void MdlMain(int argc, WCharCP argv[]) { SystemCallback::SetFileSaveFunction…
  • [CONNECT C++] ViewGroups and ViewInfo

    When we do something like this (taken from SDK ..\Visualization\DisplayStyleExample )... ViewGroupCollectionCR viewGroups = dgnFile->GetViewGroups(); ViewGroupPtr viewGroup = viewGroups.GetActiveP(); if (!viewGroup.IsValid()) return; int viewIndex…
  • [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…
  • [CONNECT C++] Example of Place Note with Leader

    Are there any examples of a C++ app that creates a Note with leader?
  • [CONNECT C++] DgnRegionElementTool::_AcceptClosedElement

    I'm attempting to write a tool to select closed elements. DgnRegionElementTool seems a likely candidate. I want to verify that the perimeter elements picked by the user are suitable. My problem is that _OnPostLocate and _AcceptClosedElement are never…
  • [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…
  • [CONNECT U15 C++] How to use DgnAttachmentP properly ?

    Hi everyone. if I attache this test_attachement.dgn to the file defaut_file.dgn with microstation function , it is ok . But if i attache with the sdk doing this : StatusInt almRefFile_attachCoincident( DgnAttachmentP *outAttachementPP, WCharCP…
  • [CONNECT C++] Editing a text element from its eeh

    Greetings, I'm currently struggling with some text modifications (C++ MDL, Microstation Connect Edition). I'm importing text elements from a DWG file into Microstation. I'd like to change some of their attributes before adding them into the DGN active…
  • add a reference that should be translated and clipped

    How exactly can i get the modelRef after begin attachment ? I'm trying with: modelRef = builder.GetDgnAttachmentCP()->GetDgnModelP(); but the reference is not translated nor clipped, so i suppose that's the problem (the only difference from v8i…
  • [CONNECT C++] Create a TextTable from Seed

    I wanted to figure out how to create a TextTable using the MicroStationAPI. With that completed, I then went on to use a TextTable seed as a template for a TextTable . That solution is described here , where you will find a link to a C++ TextTableHelper…
  • [CONNECT C++] Copy context resizes the elements x10

    Hello, I'm trying to use the ElementCopyContext class in order to copy each element from an attached DWG file. Later I'd like to import only some of the elements. The problem is the final result, it is ten time bigger than the attached file. I tried…
  • [CONNECT C++] struct RefDisplayFlags

    struct RefDisplayFlags is defined in DgnPlatform\DgnAttachment.h . In V8, we could get a RefInfo pointer from the API to view or twiddle bits in RefDisplayFlags . In CONNECT, nothing seems to use that struct. How can we modify reference flags using…
  • [CONNECT] Distinguish between multiple Tables in a DGN model

    Named Tables I recently came across a situation where a MicroStation CONNECT user had placed several Tables in a DGN model. It occurs to me that there's no simple way to distinguish between tables. For example, let's suppose you place two Tables of…