Browse By Tags

  • How to modify view's level display by MDL(C++) in MSCE?

    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…
  • bmake调试

    符老师,在MicroStation中使用bmake -a -ddebug可以生成debug版,为啥在ORD中就不支持bmake -a -ddebug,ORD中是不是就不支持这个命令,debug调试怎么用?
  • [V8i C/C++] Detect GCS

    How do I detect whether the active DGN model has a Geographic Coordinate System (GCS) active?
  • DLL not unloaded, after MDL is closed (C++, v8i)

    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…
  • MS C++ Textblock 对其方式

    //设置颜色 高度 宽度 UInt32 color = 32; UInt32 aa = 6; UInt32 width = 10; UInt Height = 10; //对其方式 DgnTextStylePtr textStyle = DgnTextStyle::Create(L"", *ISessionMgr::GetActiveDgnFile()); textStyle->SetProperty(TextStyleProperty::TextStyle_FullJustification…
  • Clear Message Center

    How does one clear the Message Center programmatically? I'd like to do that with MicroStation V8 and MicroStation CONNECT.
  • Unable to read v8i.dgn files .

    [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…
  • [MSCE c++]请问有没有给元素增加link的例子?

    给元素增加file, uri, keyin类型的link,不是通过sendKeyin的方式,不知道通过mdl如何实现,麻烦老师了。
  • [MSCE c++/cli] how to embed ico or png files to a mdl program based on c++/cli?

    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…
  • MDL - how to delete a mesh face programmatically?

    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…
  • [MS CE C++] R资源对话框的问题

    1、所有的子控件不能靠左对齐; 2、combox控件选择条目后,显示不正常; 3、子控件内容默认值的设置错误,BIW_rebarLeaderMDLglobals biw_rebarLeaderMDLglobals = {30, 2000, 8, 2}; 4、编译错误(程序可以运行); 2703.BIW_rebarLeaderMDL.rar
  • [V8i c++] MDL开发中 如何通过编程给Microstation添加主菜单?

    通过翻找之前的帖子我知道了如何通过DGNLIB定制Microstation菜单。 我想请教一下各位老师,是否可以通过编程的方式完成菜单添加。我想实现----通过安装该插件就可以自动在Microstation中添加对应菜单的功能。
  • mdl_startDefaultCommand & snapping

    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…
  • [V8i c++] MDL开发中如何读取元素的属性

    各位老师们好, 我想获得图中的所有属性; 现在通过mdlElement_getProperties、mdlElement_getSymbology两个函数获得了部分属性,如何获得Geometry、Material、Extended、Row Data 等属性呢。
  • [Microstation v8i, C#/C++] How to get the ElementRef and DgnModelRef from a C# API element?

    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…
  • 关于MS connected版本的渐变色填充

    MS ce版本开发,想对一个元素使用渐变色填充,比如使用彩虹色填充,在帮助文档中找到 AddGradientFill ( EditElementHandleR eeh, GradientSymbCR symb),这个函数,但是不知道这个函数怎么使用,关于 GradientSymbCR 的描述非常少,不知道里面的函数SetKeys()等怎么用。可否提供一段样例代码学习下?
  • Point3dInPolygonXY returns error in C#

    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(…
  • [V8i MDL/C++] Open only write protected files as read only without prompt

    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…
  • [V8 MDL] cells & associative dimensions

    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…
  • Custom Menu Item in CONNECT

    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…
  • Have problems with a MDL that can't load its DLL

    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…
  • RE: hooks_OnDesignFileOpened for C++

    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…
  • C++ Scan Example

    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…
  • C++ API and mdl

    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…
  • Simple C++ function call

    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…