• Write an OpenSTAAD Program in VS C++

    Ahmed Shakir Hassan
    Ahmed Shakir Hassan
    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…
    • Answered
    • 6 months ago
    • RAM | STAAD | ADINA
    • RAM | STAAD Forum
  • How to use aaApi_StartPartnerApplication ?

    jmdsgcv
    jmdsgcv
    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…
    • 7 months ago
    • ProjectWise Programming
    • ProjectWise Programming Forum
  • awk total records processed

    Brian B
    Brian B
    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…
    • over 1 year ago
    • Developers and Programming
    • Developers and Programming Forum
  • Get StringList from mdlStringList_loadResourceWithType

    Anneliese Brouwer
    Anneliese Brouwer
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Changing linestyle of a single line in complex chain/complex shape

    Lubo B
    Lubo B
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [MSCE 10.16 c/c++] How to define camera plane

    Oscar Veigas
    Oscar Veigas
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [OBD SDK Update 8] - change length, position and rotation of OpenStructures Steel Beam

    Manuel Höger
    Manuel Höger
    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…
    • over 1 year ago
    • OpenBuildings | AECOsim | Speedikon
    • OpenBuildings | AECOsim | Speedikon | Forum
  • [OBD SDK Connect Update 8] - modifying Structural Elements with Open Building SDK (STFC-Api)

    Manuel Höger
    Manuel Höger
    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…
    • Answered
    • over 1 year ago
    • OpenBuildings | AECOsim | Speedikon
    • OpenBuildings | AECOsim | Speedikon | Forum
  • [CONNECT C++] What a substitute for tcb->directionFormat_deprecated ?

    Hubert Gajewski
    Hubert Gajewski
    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…
    • Answered
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT Update 16 C++] Import of DXF file not correct for the coordinates

    Herve Cuzon
    Herve Cuzon
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [connect update 15 c++ ] How to solve the error of duplicate rsc?

    amender carapace
    amender carapace
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect update15 c++] How to get the origin of a object (line string/shape/etc)?

    amender carapace
    amender carapace
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect update 15 c++] How to fix error for function mdlDialog_publishComplexVariable() when inputting string

    amender carapace
    amender carapace
    The mdlDialog_publishComplexVariable() takes char* but gets error when enter a string.
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • OpenCities Map Advanced crashing after opening chart and changing model

    Lubo B
    Lubo B
    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. …
    • over 2 years ago
    • Geospatial Programming
    • Geospatial Programming Forum
  • [Connect C++] Avoid the message "No MSCATALOG table exist"

    hervecuzon
    hervecuzon
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Assistance with Creating Custom DLL Function to Call from MVBA

    Matthew Ashby
    Matthew Ashby
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • MDL .ma to Native code: setup and updating an old MDL application to native code/VS for v8i SS10

    Gary Shay
    Gary Shay
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Custom move element tool is not fast as the built-in Microstation "Move extended" when hundreds of elements are manipulated[V8i MDL]

    Lubo B
    Lubo B
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • add a reference that should be translated and clipped

    Alessandro Trebbi
    Alessandro Trebbi
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT C++] Copy context resizes the elements x10

    Topaz
    Topaz
    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…
    • Answered
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to activate particular parametric set/variation?

    Nirajchandra Gode
    Nirajchandra Gode
    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…
    • over 3 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
  • Programmer Course

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

    Michael Gravel
    Michael Gravel
    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; …
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
>