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#
connect
CONNECT C++
CONNECT Edition
Connect Mdl/C++
Crashes
mdl C++
MDL programming
MDL V8i
MicroStation
MicroStation Connect
MicroStation Programming
MicroStation V8i
MicroStationAPI
MicroStationV8i
msce
Programming
SDK
v8i
Visual Studio
VS
How to modify view's level display by MDL(C++) in MSCE?
santa lin
Hi there, Now I can modify globle level display like this: By following C++ code: DgnFileP activeDgnFile = ISessionMgr::GetActiveDgnFile(); if (NULL == activeDgnFile) return false; FileLevelCacheR levelCache = activeDgnFile->GetLevelCacheR…
Answered
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
bmake调试
hao huanghao
符老师,在MicroStation中使用bmake -a -ddebug可以生成debug版,为啥在ORD中就不支持bmake -a -ddebug,ORD中是不是就不支持这个命令,debug调试怎么用?
over 3 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
[V8i C/C++] Detect GCS
Jon Summers
How do I detect whether the active DGN model has a Geographic Coordinate System (GCS) active?
Answered
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
DLL not unloaded, after MDL is closed (C++, v8i)
Ines Wieland
Hello, I am just writing a short MDL for v8i (select series 4) in C++ that should mark all Elements in the file (by changing the line-weight), that fit to certain Database-criteria. There is a Modal Dialog that allows to Switch on or off 4 different…
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
MS C++ Textblock 对其方式
chen chen
//设置颜色 高度 宽度 UInt32 color = 32; UInt32 aa = 6; UInt32 width = 10; UInt Height = 10; //对其方式 DgnTextStylePtr textStyle = DgnTextStyle::Create(L"", *ISessionMgr::GetActiveDgnFile()); textStyle->SetProperty(TextStyleProperty::TextStyle_FullJustification…
over 4 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
Clear Message Center
Jon Summers
How does one clear the Message Center programmatically? I'd like to do that with MicroStation V8 and MicroStation CONNECT.
Answered
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
Unable to read v8i.dgn files .
Varun B
[08.11.09.292 V8i SS3] [C++ Visual studio 2015] I am reading a v8i.dgn file using mdl API's , but for some reason , i cant open/read the read only file . Code :: //Name - File name with complete path int iOpenStatus = mdlSystem_newDesignFile…
over 4 years ago
MicroStation Programming
MicroStation Programming Forum
[MSCE c++]请问有没有给元素增加link的例子?
Zemin.Li
给元素增加file, uri, keyin类型的link,不是通过sendKeyin的方式,不知道通过mdl如何实现,麻烦老师了。
Answered
over 5 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
[MSCE c++/cli] how to embed ico or png files to a mdl program based on c++/cli?
Zemin.Li
Extern files like .ico/.png are set to the image or background image propertis of winform controls,when I use the Resource Manager provided by Visual Studio, it always lead to an error, I have found a "ASSEMBLY_EMBEDDED_RESOURCES" definition in <linkMixedAssembly…
Answered
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
MDL - how to delete a mesh face programmatically?
Wes Toews
Given a mesh created with mdlMesh_newPolyfaceFromXYTriangulation, is it possible to delete faces of that triangulation through MDL? My criterion would be if the faces are above a certain size, if that helps. I don't see any relevant functions in the documentation…
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
[MS CE C++] R资源对话框的问题
Zemin.Li
1、所有的子控件不能靠左对齐; 2、combox控件选择条目后,显示不正常; 3、子控件内容默认值的设置错误,BIW_rebarLeaderMDLglobals biw_rebarLeaderMDLglobals = {30, 2000, 8, 2}; 4、编译错误(程序可以运行); 2703.BIW_rebarLeaderMDL.rar
Answered
over 5 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
[V8i c++] MDL开发中 如何通过编程给Microstation添加主菜单?
jie liu
通过翻找之前的帖子我知道了如何通过DGNLIB定制Microstation菜单。 我想请教一下各位老师,是否可以通过编程的方式完成菜单添加。我想实现----通过安装该插件就可以自动在Microstation中添加对应菜单的功能。
over 5 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
mdl_startDefaultCommand & snapping
Pucmolka
I have a program where I call mdl_startDefaultCommand, after which MS switches to a mode where I can pick a point. The problem is that I don't necessarily want the precise coordinates of where I clicked. The behavior I desire is that I want the resulting…
over 5 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i c++] MDL开发中如何读取元素的属性
jie liu
各位老师们好, 我想获得图中的所有属性; 现在通过mdlElement_getProperties、mdlElement_getSymbology两个函数获得了部分属性,如何获得Geometry、Material、Extended、Row Data 等属性呢。
over 5 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
[Microstation v8i, C#/C++] How to get the ElementRef and DgnModelRef from a C# API element?
Nick Carter
I am trying to get the ElementRef and DgnModelRef from C# API of elements I have selected so I can pass through to some Native MDL code that needs to use them? From searching through these community forums and browsing the C# functions/properties I…
over 6 years ago
MicroStation Programming
MicroStation Programming Forum
关于MS connected版本的渐变色填充
GreatApophasis
MS ce版本开发,想对一个元素使用渐变色填充,比如使用彩虹色填充,在帮助文档中找到 AddGradientFill ( EditElementHandleR eeh, GradientSymbCR symb),这个函数,但是不知道这个函数怎么使用,关于 GradientSymbCR 的描述非常少,不知道里面的函数SetKeys()等怎么用。可否提供一段样例代码学习下?
over 6 years ago
MicroStation Programming
[Archived] 中国BDN社区 MDL/C/C++
Point3dInPolygonXY returns error in C#
Dale
I am trying to determine whether or not a text element (or e shape) is placed inside a shape/complexshape. No matter what I try, I get an error. Here is the code: Point3d pText = eleText.get_Origin(); Array psShape = e.AsShapeElement.GetVertices(…
over 6 years ago
MicroStation Programming
[Archived] 中国BDN社区 MDL/C/C++
[V8i MDL/C++] Open only write protected files as read only without prompt
FlexiTon ADT
Hello, I have to open a write protected file as read only at Bentley Map SS4 startup without any prompt. I specify the file name and use the -R switch in command line to do this, and it works fine. However, any further open file operation (ISessionMgrR…
over 7 years ago
Developers and Programming
Developers and Programming Forum
[V8 MDL] cells & associative dimensions
Volker Hüfner
Hi everyone, I have a problem with cells containing associative dimensions. - Using the user interface to place the cell in a DGN, the dimension is still associative to the lines. - Using: “mdlCell_placeCell(NULL, NULL, TRUE, NULL, NULL, 0, FALSE…
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
Custom Menu Item in CONNECT
rinedge
Hey everyone! So, I have a working MDL (written in C++) set up with Connect that provides functionality where I can intercept and basically override certain commands with my own functionality. In some cases, this functionality is launching an outside…
over 7 years ago
MicroStation Programming
[Archived] 中国BDN社区 MDL/C/C++
Have problems with a MDL that can't load its DLL
wirring
I have encountered problem with an old Mdl / dll that have being running for years. We the MDL is loaded it fails and give this error messages in the Message Center MDL Loader: Could not load application X34FEATDEF MDL Loader: Unable to load library…
over 7 years ago
Geospatial Programming
Geospatial Programming Forum
RE: hooks_OnDesignFileOpened for C++
HDR_Coder
Thank you for the response. I have used these functions and created a simple .ma file. extern "C" DLLEXPORT int MdlMain (){ mdlSystem_setFunction(SYSTEM_NEW_DESIGN_FILE, OnNewDesignFile); mdlDialog_cmdNumberQueue(FALSE, CMD_MDL_UNLOAD, mdlSystem_getCurrTaskID…
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
C++ Scan Example
HDR_Coder
Hello, I have seen some examples of scanning with C++ on this site, as well as in the scanfile example included in the SDK. Despite all of this help, I have yet to figure our scanning. Could one of you post an example of a simple scan that just looks…
Answered
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
C++ API and mdl
HDR_Coder
In the .chm files there is "MicroStationAPI.chm", "MDLAPIFunctionReference.chm", "MDLProgrammerGuide.chm." I am wondering if I am missing something like "C++APIFunctionReference.chm." I was looking for mdlScanCriteria_api and didn't know if this was…
Answered
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
Simple C++ function call
HDR_Coder
Hello all, I have the MicroStation Developer Shell working and am able to build and run all of the projects in the SDK. I have taken the file CustomizeTestApp.cpp and have left in the headers but stripped away all the functions and anything inside…
Answered
over 8 years ago
MicroStation Programming
MicroStation Programming Forum
<
>