Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
C++
MicroStation Programming
.NET dotNET C# CSharp
addin
API
API SDK programming
c#
connect
CONNECT C++
CONNECT Edition
Connect Mdl/C++
DGN
error
KEY-IN
MDL
mdl C++
MDL programming
MicroStation
MicroStation Connect
MicroStation V8i
MicroStationAPI
MicroStationV8i
programmer
Programming
SDK
v8i
VBA
Has anyone ever successfully used the << mdlVBA_runProcedure >> function? [MicroStation CONNECT C++]
Matthew Ashby
I am using MicroStation CONNECT 10.16.03.11. Has anyone successfully used this mdlVBA_runProcedure to call a subroutine in a MVBA file? For example if I had these MVBA settings: Project Name = TEST Module Name = MAIN Subroutine = Apple …
Answered
11 days ago
MicroStation Programming
MicroStation Programming Forum
[MStn CE 16 C++] Is there a way to programmatically get the user preference for "Use Color Table"?
Briant Piepgrass
Hi, I have a tool where I need to know if the color table used is coming from the mater file or the reference itself. Is it possible to find out the user preference setting for this? Thanks, Briant
Answered
14 days ago
MicroStation Programming
MicroStation Programming Forum
[Connect 17 c++] Differentiating between elements of the same type - Element type 106
Tristan Brown
Hello, So when iterating over the current elements in the drawing file, I have both a Linear Solid/Parametric Solid and a point cloud, both these elements have the same type (106). Considering these vastly different elements have the same type, how…
Answered
8 months ago
MicroStation Programming
MicroStation Programming Forum
Applying transform through EditElementHandle causes Element descriptor to change
Lubo B
Hello, I have a following problem: weird behavior is happening on Opencities (link to question, https://communities.bentley.com/products/geospatial/desktop/f/bentley-map-forum/238486/changing-scale-of-a-cell-causes-the-subelement-line-linestyle-scale…
10 months ago
MicroStation Programming
MicroStation Programming Forum
Scale all elements in model by 25.4
Daverode
I'm using Microstation Connect Update 10 and I'm trying to modify a dgn file(not the active file) and then save it as a dwg file for our cnc operations. Part of the modifications include dropping all the cells and complex elements to geometry, deleting…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT C++] Problem using TagElementHandler to create a tag element
John Majerle
I have installed: MicroStation CONNECT Edition 10.15.0.74 MicroStation CONNECT Edition SDK 10.16.02.022 See my test code snippet below. I am getting an exception when calling TagElementHandler::Create(). Stepping in the debugger I find that tagData…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
[C++ MDL Connect] Questions regarding native MDL
Edward Ashbolt
Hi all, I have been experimenting building a native solution and have a few questions, hopefully someone might be able to give some advice to save me pulling any more hair out! Is it possible to build a CLR class library and load that in Microstation…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
[MSCE U16 C++] change Element color to Colorbook Color.
Manuel Höger
Hi Guys, I neet to set the color of an Element to a the color CLASSIC 840-HR:6006. At the moment I'm only capable of passing a Color Index to the element using the Code: DgnFileP activeDgnFile = ISessionMgr::GetActiveDgnFile(); ColorBookPtr…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
Changing linestyle of a single line in complex chain/complex shape
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
Setting up VS 2017 C++ project for debugging
Daverode
I'm trying to setup a vs 2017 c++ project to debug a MDL project I created with Microstation SDK Command Utility. I'm using Promis.e Connect Update 10 (Latest Build). I'm not 100% sure what version of Microstation that translates to, but the add-ins…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT C++ U16.2] Item Type iteration fails
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
Event for export & Import of stp and igs file types
Rama Shrinivasan
We have developed a Native C++ application for MicroStation Connect Edition 10.15.02.11 Since we encrypt the exported files with .igs and .stp formats. While exporting a dgn to .igs or .stp file type, can we get any event to identify the process ? Similarly…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[Connect update15 c++] Example set missing files, where can I download complete set?
amender carapace
I am going through all the examples under the bentley's example folder. I encountered several instances where there are files missing. There are others missing .cpp files and ones I have no idea what is missing. Some examples either don't work or…
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
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
[connect update 15 c++ ] How to solve the error of duplicate rsc?
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 Update 15 c++] Is there a way to draw a uneditable shape except through your UI dialog box?
amender carapace
I want to draw a object and make it unable to be altered by other tools expect through the UI I provided. For example draw a box with a trailing line segement fixed at certain angle to the rectangle. I do not want anything including the size of the…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[MS Connect C++] How to launch the mdl command to place a note?
hervecuzon
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…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
OpenCities Map Advanced crashing after opening chart and changing model
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
Linear Patterning, Patterns not linked to original element.
John_PartTime
[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…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Enable/Disable Ribbon Buttons using Named Expressions?
Rajesh Varatharajan
Hi, I am working in MicroStation CE Update15. I need to enable /disable ribbon menu buttons based on a variable value. When i searched in community, many suggestions was can be done through "Named Expressions". Please provide me an simple…
over 2 years ago
Product Administration
Product Administration Forum
Creating macro in c++
Adil Gondal
Hi, I have to create a macro in MicroStation V8i (SELECTseries 10) in C++. C++ is not the issue, I already know the language but I haven't created a macro in MicroStation before. Macro Requirements: If I have multiple layers in a MicroStation…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Get and Set ACS
Ole Gottwald
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.…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Ways to deploy my DLL to Microstation MA file
Ajomon George
I am trying to find a way to deploy my dll built in c++ to my microstation application. Could you please suggest the steps to deploy it and convert to microstation ma and dll file? I am using Micrstation v8i SS6.
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Load MDL app on Application Startup (MS_INITAPPS)
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
How to Encrypt dgn file using externel dll?
Rajesh Varatharajan
We have our own encrypt mechanism . We would like to implement it when save action triggers. Also we would like to decrypt it when open action triggers. We tried with Read and Write API hooking. But its not Succeeded. Is there any possible way to…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
>