Browse By Tags

  • [CONNECT C#] CellLibraryInfo Performance

    Versions: OpenRoads Designer and SDK Update 4: 10.04.00.48. And MicroStation Update 10 (10.10.00.32 and SDK 10.10.00.23). I am using CellLibraryCollection and CellLibraryInfo to find cells and I've noticed that it is slow - meaning it takes at least…
  • [CONNECT C#/C++/VBA] OpenRoads - Model Flags/Properties - Annotation Cell

    Versions: OpenRoads Designer and SDK Update 4: 10.04.00.48. And MicroStation Update 10 (10.10.00.32 and SDK 10.10.00.23). I am trying to create a model (a cell) that can be placed as annotation cell. The model gets created as expected, but fails to…
  • Access Violation with SetLineStyle and trying to retrieve Element by native ref

    Hi, I am getting to grips with programming in CONNECT (Update 9), using a mixture of c++ and c#. Where possible my preference is to using the DgnPlatformNET and MstnPlatformNET interfaces but for the time being there will be quite a bit of code using…
  • 【C++ CE】在托管C++中编写工具 怎么编写工具的对话框

    老师您好,我用托管C++编写工具,用xml的方式写的工具命令,这个和一步步学MDL不一样,请问我怎么编写工具的对话框呢?
  • 【C# CE】可以用托管C++来编写工具吗

    请问老师,C++的工具可以在C#中用托管C++的方式调用吗,可以的话,有这样的例子什么的吗
  • [CONNECT C++,C#] Difference between ScanCriteria.SetDrawnElements() and SetModelSections()?

    Hi, both in native and managed API there are two methods available (using C# notation): ScanCriteria.SetDrawnElements() ScanCriteria.SetModelSections(DgnModelSections section) My question is: ScanCriteria.SetDrawnElements() equal or not…
  • MS CE color panel定制

    我有这样的一个需求,我需要在MS中对一个流场的场变量进行着色,需要利用类似Thematic下面的显示方式,这时候着色变量不再是高程,视角,而是我的矢量\标量数据,不知道有没有办法解决?另外不知道MS本身有没有内在的功能可以支持时间序列数据的可视化表达,先谢谢老师得回答。(图片分别为有限差分计算网格,和其中一个时间步的流速矢量箭头图,只是为了表达方便)
  • MS CE下如何实现类似ABD中梁板柱的动态建模

    老师能不能提供一个完整的思路,分别在打开或者关闭正交的情况下,动态的绘制圆柱,C++/C#均可。
  • ProStructures API or SDK

    Does ProStructures or ProSteel provide an API ? Is the API included with the product or provided with a separate SDK ? What languages are supported? VBA C# C++ Glossary API: Application Programming Interface SDK: Software Developer…
  • [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…
  • RE: How to activate a model in C# V8i

    Another problem with my posted code is that it only iterates through loaded models. A workaround is to write a quick VBA to activate each model in the design file and then to run the code. A much better solution is posted here. Here is the new code…
  • transferring data from c++ to c# ... storage attributes example

    Hello, I am totally lost when it comes to transferring group or collection data from c++ to c#. I still don't know how to use INTPTR to read HAADMSBUFFER ... I think I need a link to a guide on where to start . Obviously, a sample visual studio project…
  • Learning about XFT Move Operation in Map

    HI all! I need to know how use the move operation in Bentley Map. Actually, in C# i write this code: Bentley.Interop.Xft.MoveOp op = new Bentley.Interop.Xft.MoveOp(); Bentley.Interop.Xft.CmdMgrClass mgr = new Bentley.Interop.Xft.CmdMgrClass…
  • RE: Dot net application not working in multiple microstation DGN

    Hi Mr. Jon & Mr.Stack I created this using C++ inside Visual Studio 2010. It is a winform application so it will work externally. Please find the Read.h (C++ header file ), where i have written the code to draw blocks give some suggestions. Thanks…
  • Dot net application not working in multiple microstation DGN

    Hi Everyone, I have written one application to create blocks in microstation. Its working fine if one .dgn file is open. If i will open multiple dgn file , its only working in the dgn which was opened first. I used visual studio 2010, C++.net…
  • RE: Create Blocks along center line and count points opened in micro station using Terra scan

    Thanks Mr. Jon Please find the Extract.rar. This is a sample C++ project to copy element made in visual studio 2008. Please can you give any suggestion to make a .ma or .dll file so that i can call it from microstation Regards Manoj
  • Create Blocks along center line and count points opened in micro station using Terra scan

    Hi All, I am using Visual Studio 2010 , Microstaion V8i and C++/C#.net I loaded the laser points to microstation using terrascan. I want to create blocks along the center line having certain length and width. i want to count the number of laser…
  • Stream a text file from ProjectWise

    Is it possible to stream a text file from ProjectWise? I noticed the DocFetchFlag "AADMS_DOCFETCH_STREAM_SUPPORTED" I want to pass the streamed contents to a WinForm textbox which acts as a preview pane. Cheers
  • Export to PDF

    Hi, guys. I have a simple question: For each document in PW, i need to generate a PDF of this file. Is there a simple way to implement something like that using PW SDK? I have no idea where i should begin to do it. Thanks!
  • Can't call DLL function that makes ProjectWise API calls

    Using Visual C++ (in Visual Studio 2012), I've made a DLL with a function openDoc(int projID,int docID) that calls the ProjectWise API to open a document. I'm trying to call this function from either C# or VBA, but haven't succeeded with either one…
  • Assistance with writing dll containing specific function that will be used in C# project

    Anonymous
    Anonymous
    We are wanting to create a library (dll) for searching Projectwise and returning document information. The searches will be against a known environment and include criteria that uses both document properties and attributes from the environment. The library…
  • Accessing materials that are attached by level and/or color

    In Microstation materials can be attached directly to element or by level or by color. When material is attached by element I can access it via the API , however when it's attached by level or color I can't find where this information is stored...…
  • PLEASE READ: MicroStation Programming forum best practices

    1. When including code in your post, please use the the SyntaxHighlighter, which is one of the tools in the "Advanced Reply Editor". 2. To let others know the MicroStation release and programming language being used without having to open the thread…
  • Re: [V8 C#] Click event handling (not ILocateCommandEvents nor IPrimitiveCommandEvents)

    Thank you both Jon and Jan. I've got some expertise in programming C# applications and I have already some developments for MicroStation, so I would like to try invoking the MDL API from C#. Nevertheless if it were necessary, I could also try to…
  • What every programmer should know before writing managed C++

    Managed C++ brings together the worst of two worlds: the explicit resource management of native C++ and the non deterministic nature of garbage collection. Programmers have to be aware of these two different resource management strategies and know how…