Browse By Tags

  • Write an OpenSTAAD Program in VS C++

    I want to learn to write an OpenSTAAD code in Visual Studio 2023 C++. I followed the steps as listed in STAAD.Pro Help OpenSTAAD. The code given by Bentely is look like: #import "C:\Program Files\Bentley\Engineering\STAAD.Pro CONNECT Edition\STAAD\StaadPro…
  • How to use aaApi_StartPartnerApplication ?

    Hello, I am looking for a solution to view a dgn document from ProjectWise CONNECT Edition (3.299) into Microstation CONNECT (Update 17) without checking out the document, but still be able to modify or add references to the opened document in Microstation…
  • awk total records processed

    Hi All, I would like to add several lines to the output of my script. Currently, the script behaves as outlined in the README.md file here . But the behavior I want to change it to is below: ./sample.sh -s 0-9 -c 0-3 -t samples.bin Ch0 Ch1 Ch2…
  • Get StringList from mdlStringList_loadResourceWithType

    Hi all, MicroStation Connect Update 13 Version10.13.00.48 I am doing some programming in C++/MDL. I want to change some linestyle names in resource files programmatically. With the function mdlLineStyle_nameGetStringList there is the…
  • Changing linestyle of a single line in complex chain/complex shape

    Hello guys! After a long time of silence I came up with another question. I remember i had question similar to this behavior, but that was for V8I version. Lets say i have a complex chain consisting of multiple lines. Now i want to modify linestyle…
  • [MSCE 10.16 c/c++] How to define camera plane

    Hi , I'm writing an application that uses a camera that is modified (oriented) through user interaction, using mdlView_SetCameraParameters. So far so good, but by default focal plane is always perpendicular to camera axis, and I need to orient…
  • [OBD SDK Update 8] - change length, position and rotation of OpenStructures Steel Beam

    Hello All, I need to change the size, position and rotation of an OpenStructures Element in OpenBuilding Designer. Ma first attempt, described in the post: [OBD SDK Connect Update 8] - modifying Structural Elements with Open Building SDK (STFC-Api…
  • [OBD SDK Connect Update 8] - modifying Structural Elements with Open Building SDK (STFC-Api)

    Hello, I need to change some Properties of a Steel Beam Element in Open Building Designer Update 8 using the C-Api "stfc-api".. Until now I've been able to read the "LinearMember" out of the EditElementHandle and to change some Properties in it…
  • [CONNECT C++] What a substitute for tcb->directionFormat_deprecated ?

    I would like to toggle the file settings contained in the Bentley::DgnPlatform::DirFormat structure, but tcb->directionFormat_deprecated is not supported. Is there any way to modify the parameters in C++ or Key-In: DirFormat.baseDir DirFormat.flags…
  • [CONNECT Update 16 C++] Import of DXF file not correct for the coordinates

    Hello all. We are trying to import the contents of a Dxf file into a Dgn file. Our DXF file as 10000 UOR per master unit, but the DGN file as 1000 UOR per master. Here is the source code: void copyContentIntoAnotherFile(DgnModelRefP fromFile, DgnModelRefP…
  • [connect update 15 c++ ] How to solve the error of duplicate rsc?

    MicroStation Resource Librarian 03.20.02 ### Error: Duplicate: File=(C:\Users\ADMINI~1\AppData\Local\Temp\Bentley\MicroStationSDK\objects\HelloWorld.rsc), TypeId=('str#') RscId=(1) ### Error: Duplicate: File=(C:\Users\ADMINI~1\AppData\Local\Temp\Bentley…
  • [Connect update15 c++] How to get the origin of a object (line string/shape/etc)?

    Is there a function or attribute to getting origin of the selected element? I am doing scaling (enlarge/shrink) via transformation on the element and found out that it scales around the global origin. However, I want to do scaling around the object…
  • [Connect update 15 c++] How to fix error for function mdlDialog_publishComplexVariable() when inputting string

    The mdlDialog_publishComplexVariable() takes char* but gets error when enter a string.
  • OpenCities Map Advanced crashing after opening chart and changing model

    Hello! This week I found strange behavior in our plugin running on OpenCities Map Advanced 7. I´ve been trying to pinpoint the cause of this behavior and find out why is it happening. However, I got unlucky and decided to ask for some help here. …
  • [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…
  • Assistance with Creating Custom DLL Function to Call from MVBA

    Hello, I am attempting to upgrade an older V8i .MA macro so that it can be used with MicroStation CONNECT. Before diving into the specific details, here is a summary of my software and computer information. MicroStation CONNECT Edition - Update…
  • MDL .ma to Native code: setup and updating an old MDL application to native code/VS for v8i SS10

    Hi all - the new year's come around and we've got some new requests from our Engineering group that need to be addressed. The biggest one is an update to an automation program that was written in MDL and limped along in the old environment through v8i…
  • Custom move element tool is not fast as the built-in Microstation "Move extended" when hundreds of elements are manipulated[V8i MDL]

    Hello! It´s me again, with a question. I´m currently working with a Microstation V8i SS4 version, where I needed to add my own functionality to the move tool, so I´ve decided that I will implement myself it with MDL API, as VBA didn´t offer me the things…
  • 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++] 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…
  • How to activate particular parametric set/variation?

    Microstation Connect Edition Update 14 - C++ Native - SDK In a particular model, I have added one variation/Parametric set using API - (IDgnComponentDefinitionModelHandler) -> CreateParameterSet(). I have also created associated variables with this…
  • [Connect C++] How to get the color of an element?

    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…
  • Programmer Course

    Hello Everyone I just started a new job. We are using Microstation v8i and moving to Connect. Who offers a course on writing C/C++ apps and DLL's? I have the book Microstation VBA and been reading all you guys have to offer but still missing the mark…
  • [Connect C++] list with all the "class name" types of an element

    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…
  • mdlSelect_returnPositions API documentation seems incorrect in Microstation Connect SDK.

    mdlSelect_returnPositions API documentation says you have to Free returned memory. It causes crashes if I do. Do you still need to Free this memory in Microstation Connect SDK? See code sample below. void WatchMeCrash() { DgnModelRefP *fileNums; …