Browse By Tags

  • [CONNECT Update 16] GetStringFromMstnResource

    I notice that the .NET Session class has member GetStringFromMstnResource . It looks like that function gets a string from a message list stored in a .rsc file, which is what we've done for MDL and C++ apps for donkey's years. In a .NET AddIn , how…
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Hello, I wanted to catch messages from notification panel of microstation. I can catch messages with green underline with AddIn.MessageCenterWriteEvent. But I can't catch message with red underline. I found NotificationAdministrator with description…
  • [CONNECT .NET] XML Command Table

    An AddIn built with .NET has an XML command table. It uses XML schema http://www.bentley.com/schemas/1.0/MicroStation/AddIn/KeyinTree.xsd, but the schemas/1.0 folder doesn't exist. Where is the XML command table structure defined? I can find nothing…
  • 求出地形与某平面或网格的相交轮廓线

    比如要在现有的地形中设计一个取土场或渣场,在选定了大致的位置后,指定场地的标高,此时我需要得到此标高对应的平面与地形的相交轮廓线,并以此进行后续的场坪建模以及对原进行的剪切开挖等操作。 如图所示,在此地形中,通过在某区域指定一个标高 ,希望通过得到它与原地形的相交轮廓线,然后以此轮廓线进行场地开挖,得到如下效果: 。 请教几个问题: 1. 如何通过ORD中的相关操作得到此相交轮廓线(上图中的轮廓线是通过Autocad中的某插件完成的)? 2. 将此问题进行扩展,可延伸为三维网格与网格对象求相交线的问题…
  • 【C# Microstation V8i】 How to determine if an element is 2D or 3D?

    hello: My Microstation version is v8i ss3, my programming language is C#, and Visual Studio version is 2015 Professional, add-in. As the title says, I want to determine if a Cell contains 3D elements. If it contains, hide this element. Here is my…
  • 【C# Microustation V8i 】 How to modify multiple element information ?

    How to modify multiple element information by reading the information in EXCEL, such as the radius of the circle, I have already obtained EXCEL data, and use the data to modify the radius of the circle (for example), using the Rewrite method, But…
  • 【MSTN V8i Addin C# 】How to get all the elements in the model?

    Hello everyone: How to get all the elements in the model, I use the Scan method in the VBA interface but it did't work. Is my code wrong or there are other ways to get the elements in the model? public void Dynamics(ref Point3d Point, BCOM.View…
  • [C# MicroStation v8i ss3] Create a table

    Hello everyone, I want to create a table programmatically in Microstation v8i ss3. My software is vs2015 and the programming language is C#. The content of the form is taken from the user-defined attributes. How can I implement this function? …
  • How to add attribute information to an element,using C#

    hello,everyone! I created an element in C#. Now I need to attach attribute information to this element. How can I implement this? Please help me!
  • Adjust Dimension-Text Location Using Microstation VBA/C#

    I want to adjust/move the dimension text from one location to another location( Here both source and destination co-ordinates are known ). How to perform this? Kindly suggest. Screenshot is attached for your reference. In the Screenshot, the Red…
  • RE: [V8i C# MDL] How do I marshal a MDL structure in C#

    Hi Darren, I know this question is from a long while ago, but maybe this can assist someone having the same problem. This answer is in response to your bigger question "How do I marshal a MDL Structure in C#". I have created a class for marshaling…
  • [Connect - .NET] How to get vertices from complex string

    Hi I'm trying to get all the vertices from a complex string, In V8i version we did the folowing: "BCOM.Point3d[] pts = elm.AsComplexStringElement().ConstructVertexList(0.02);" How can we do this in Connect .? In the documentation I've found the…
  • C# Addin Dialog variables

    I have been writing a C# Addin for Microstation. I can capture the dialog open hook, but cannot get access to any of the variables within the dialog. I want to both read and write these values so that when the dialog closes it uses my changed values…
  • COM error from c# app outside VS?

    I have a c# app developed in visual studio 2012 that references bentley.interop.microstationdgn.dll to process dgn files. When I run the app in studio it works fine but, when I try to run it outside of studio, I get the following error: Retrieving…
  • [V8i C#] Trouble setting the propertyhandler

    I am having trouble setting the propertyhandler and get an error when trying to get the value of the property. The propertyhandler appears to be set and allows the debugger to continue but stops at the GetValue function. BCOM. Element oEle = (BCOM…
  • TextMod & CellUtility unknown Keyin command

    Hi, I'm new to Bentley and just trying to make a C# addin in VS2010, loading on V8i. I've having the same problem as this post http://communities.bentley.com/products/programming/microstation_programming/f/343173/t/77681 I've gotten both the example…
  • .NET vs MVBA

    Hi all, Sorry for the naive questions, if they have already been answered on the forum, I am unable to find answers to this question. If they are answered already, please point me to the thread. I would like to know a few things about .NET and MVBA…
  • Developing .NET 4 addin

    Hi, I tried to compile CellUtility addin example with VS 2010 and also changed target framework to ".NET framework 4". It succeded. When I load the addin in SS2, an unhandled exception ( System.BadImageFormatException) occurs. Is the .NET 4 framework…