• [CONNECT Update 16] GetStringFromMstnResource

    Jon Summers
    Jon Summers
    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…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT UPDATE 15 C#] NotificationAdministrator

    Damian Holubowski
    Damian Holubowski
    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…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [CONNECT .NET] XML Command Table

    Jon Summers
    Jon Summers
    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…
    • over 4 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 求出地形与某平面或网格的相交轮廓线

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

    Alisa LI
    Alisa LI
    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…
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 【C# Microustation V8i 】 How to modify multiple element information ?

    Alisa LI
    Alisa LI
    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…
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • 【MSTN V8i Addin C# 】How to get all the elements in the model?

    Alisa LI
    Alisa LI
    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…
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [C# MicroStation v8i ss3] Create a table

    Alisa LI
    Alisa LI
    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? …
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • How to add attribute information to an element,using C#

    Alisa LI
    Alisa LI
    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!
    • Answered
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Adjust Dimension-Text Location Using Microstation VBA/C#

    Dharma Rajan
    Dharma Rajan
    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…
    • over 5 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [V8i C# MDL] How do I marshal a MDL structure in C#

    Francois Grobler
    Francois Grobler
    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…
    • over 7 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [Connect - .NET] How to get vertices from complex string

    Pierre El-khoury
    Pierre El-khoury
    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…
    • Answered
    • over 7 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • C# Addin Dialog variables

    paralee
    paralee
    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…
    • over 8 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • COM error from c# app outside VS?

    TMA
    TMA
    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…
    • over 8 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i C#] Trouble setting the propertyhandler

    Shane Kril
    Shane Kril
    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…
    • over 8 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • TextMod & CellUtility unknown Keyin command

    Son Vo
    Son Vo
    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…
    • over 8 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • .NET vs MVBA

    theGreg
    theGreg
    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…
    • Answered
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Developing .NET 4 addin

    Vit Nemecky
    Vit Nemecky
    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…
    • over 12 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i Programming Forum