Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
MDL
C++
.NET
2004
Bentley Map
c
c#
Cell
connect
CONNECT Edition
Connect Mdl/C++
Crashes
mdl C++
MDL programming
MDL V8i
MicroStation
MicroStation Connect
MicroStation Programming
MicroStation V8i
MicroStationAPI
MicroStationV8i
Programming
SDK
v8i
VBA
Visual Studio
VS
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…
9 months ago
MicroStation Programming
MicroStation Programming Forum
[CE MDL/C++] Problems with mdlElmdscr_stroke
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 Update 17 C++] MDL load error in MicroStation Update 17
Jesper Stahl Madsen
Hi! I have a native MDL application that runs perfectly in MicroStation Update 16, but in MicroStation Update 17 I get a MDL loader error 127 I'm using the latest MicroStation SDK when compiling the application. I have other native MDL application…
Answered
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
Get StringList from mdlStringList_loadResourceWithType
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
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
[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
[MSCE C++] mdlWorkDgn_createFile 函数创建文件报错
九墨 郱
for (int i = 0; i < 10; ++i) { printf("i:%d\n", i); // 新建的模型 DgnModelRefP seedModelRefP = ACTIVEMODEL; DgnModelRefP newDgnModelRefP = NULL; WChar* savePath = L"d:\\a.dwg"; StatusInt status = mdlWorkDgn_createFile(&newDgnModelRefP, savePath…
Answered
over 1 year ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
[CONNECT C++] What are the mdlTable_* and mdlTableEntry_* replacements?
Miroslav Mandl
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…
over 1 year ago
MicroStation Programming
MicroStation Programming Forum
[Connect C++ Update 16] Using Visual Studio 2019
Edward Ashbolt
Hi All, I was hoping to get started with C++ MDL development and didn't have the hard drive space or desire to uninstall my current devenv (VS2019 Pro) and then have to reinstall VS2017 along with all the same features / extensions... so long story…
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
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
Saving a custom variable inside a DGN file, so I can read it later during the opening [Microstation V8I MDL API]
Lubo B
Hello everyone! I´m currently developing a little mechanism to do checks on my DGN files, and I would like to save a variable value (for example bool) into a DGN file. I mean like, value of my variable will be persisted with the DGN file itself. So…
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
Assistance with Creating Custom DLL Function to Call from MVBA
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
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
MDL .ma to Native code: setup and updating an old MDL application to native code/VS for v8i SS10
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
[CONNECT C++] Editing a text element from its eeh
Topaz
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…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[C++ MICROSTATION CONNECT U15] issue with mdlMinDist_betweenElms since UPDATE 15
Arnaud Le Bris
Hi everyone, When we migrate our application from V8i to connect we found the mdlMinDist_betweenElms dot does not work as intended. in V8i we use mdlMinDist_betweenElms for example a cell and a line, but since CONNECT it does not work anymore. So…
Answered
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
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
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
How to activate particular parametric set/variation?
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
【MS CE updt13 C++】放置sharedcell的问题
Grant Zhang
我自己绘制了一个椭球体作为一个shared cell元素放在一个cel文件的model中,。 新建一个dgn文件,我打算使用mdl函数: mdlSharedCell_create,mdlSharedCell_makeSureDefExists,mdlSharedCell_setRange等将这个cel放置在我新建的dgn文件中; 我发现处理二维的cell元素都没问题的,处理三维的cell元素;画不出来对应的椭球体cell元素;全选发现有元素个数,但是fitview没有元素显示;使用MS自带的工具就不能放置地层界面点或者构造点shaerdcell…
Answered
over 3 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
[MSCE C++] 请问怎么从ElementRef或者EditElementHandle 查找这个元素属于哪个参考文件,从而获得参考文件的Transform
santa lin
已经找到答案,解决问题了,谢谢!
Answered
over 3 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
>