Browse By Tags

  • [CONNECT Update 14 C#] Getting all of the Wall Centerlines from a DGN Drawing Automatically

    Hi everyone, I have a question regarding being able to recognize individual wall elements especially the wall's centerlines in a 2D MicroStation Drawing. My end goal is to use the centerline information of each wall object to recreate the wall in…
  • [CONNECT/(V8i); VBA/C#] Using C# DLLs in a VBA-Project

    Hello, I have a question. Is it possible to make a C# DLL usable in a VBA project and if yes, how? We already tried with the following Link: https://www.geeksengine.com/article/create-dll.html But in that example you have to move a file in to…
  • [CONNECT C#] After ElementPropertiesSetter the Element is locked

    After using ElementPropertiesSetter, the respective element is locked and cannot be unlocked in the MicroStation afterwards. Did I forget something? public bool SetElementLevel(BDE.Element element, string levelName) { try { BD.LevelId levelId…
  • [CONNECT U13 C#] ElementChangedEventArgs gives the same element for eventArgs.NewElement and Element.GetFromElementRefAndModelRef(eventArgs.OldElementRef, eventArgs.OldModelRef)

    Hallo, I'm updating an existing suite of tools in a C# Addin that was previously written for V8i to CONNECT. As part of the update I am replacing the COM Interface calls as much as possible with the NET API calls in the CONNECT Edition. I have however…
  • Developing CulvertMaster tool

    I have been tasked with developing a tool to automate determining the flow a number of pipes can handle in Bentley CulvertMaster, preferably in Python, but I could work with another language if necessary. Is there a python package or a specific SDK that…
  • [CONNECT C#] Managed Equivalents for older COM Interop Calls

    Hallo, I am converting existing add-ins that were written in C# using the COM Interop on V8i SS4 to the new CONNECT NET API and I would like to get rid of any remaining calls to the COM Interface where possible. To achieve that goal, I need to find…
  • Read Attribute from Element in C# .Net

    I am using the following code for read the attribute from element by attributeIndex in c# .Net and Microstation V8 2004 Edition.But it shown errors like Unable to cast object of type 'System.Object[]' to type 'MicroStationDGN.DataBlock[]'..Is there any…
  • Microstation v8 Addin

    Is any possible to create Addin for Microstation v8 2004 edition for my .net c# microstation application?
  • Microstation connect

    We have developed some MDL Applications using Pseudo code in V8. As our management decided to purchase Microstation Connect Edition beginning of Jan 2021. (Budget problems) In order to save time, Can we do the MDL migration in two stages, Stage 1 (During…
  • C# Add-Ins for MicroStation

    I just posted some sample MicroStation Add-Ins to my Github site: https://github.com/DaveBrumbaugh/MostOfDavesClasses-CSharp-Wrappers-For-ProjectWise/tree/master/Samples/MSCE-AddIns You'll need MostOfDavesClasses.cs from the root of the site to build…
  • Why can I not see the SDK download?

    Is it something that you have to pay extra for? I am on connect update 13
  • [CONNECT U13 C#] How to reverse a linear element with dotNet API?

    Hi all, Does somebody know how to reverse (in C# code) an element (line(string), arc, complex chain)? By using the new dotNet API, not using interop...
  • [CONNECT C# .NET] How to associate an ItemType to a parametric model and then create a variation associated with the ItemType?

    Hello, I am using OpenBuildings CONNECT Update 5, I think the version is 10.00.14.18 . 10.05.00.49 (Corrected). I am using the MicroStation Update 12 SDK. I am trying to create a variation (parameter set) in a model but I want to associate the variables…
  • [MSTN V8i] [C#]Judge four points on a plane?

    T ake four points at any point. I want to judge whether it is on a plane. My MicroStation version is v8i ss3, Visual Studio version is vs2015 Pro.If there is any way to provide it to me, I am very grateful.
  • [CONNECT C# ADDIN] check if property is hidden

    i am using .net apis. i am looping through a model and finding a certain item type, then i am looping through the properties in that item type. i am getting the property name and value but im struggling to find out how to tell if that property is hidden…
  • [CONNECT C#] add dgn model reference using .NET and change some reference settings

    trying to figure out how to add a dgn model reference to a file and set a attachment settings. just struggling through the SDK. I found CreateDgnAttachment method but cant find how to set reference settings. here is what I have so far but after I…
  • Add a CreateCellInstance method to place a Cell from a Cell Library

    There is no way in .NET to place a new cell instance by reading a cell definition from a cell library. When creating a new cell instance, there is a lot of unseen work involved in copying a cell definition. In addition to the graphic elements, there…
  • How to create/update attributes for a document using c#?

    I wanted to create documents and set their attributes in ProjectWise from a C# application. I could create documents but I don't know how to set the attributes. I'm trying to use aaApi_SetLinkDataColumnValue and aaApi_CreateLinkData but it does not work…
  • 求出地形与某平面或网格的相交轮廓线

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

    This seems like it should be easy but I'm having trouble using the ProStructures API with my C# plugin for ProStrutures on AutoCAD. I have referenced the ProStructuresNet.dll library into my project along with the usual AutoCAD libraries. I can use the…
  • From V8i to Connect with KISolid functions

    Hello, we are in the process of migrating from v8i to Connect SDK. We have many dlls and we need a little help to find some references that are probably relocated, or new ways to do the things we used to do through the old SDK. Lately we had been…
  • [V8i C# MDL] mdlView_getClipBoundaryElement not working

    Hi, I had an issue on calling mdlView_getClipBoundaryElement() which is the opposite problem of the post below. I was trying this with AECOsim V8i SS6 and VBA approach did work. However, it gave me -168 error code and Element ID as 0 all the time. I…
  • [V8i C# MDL] mdlView_setClipBoundaryElement -168 MDLERR_NOCLIPVOLUME - Help!

    Wondering if anyone would be able to help with an issue I have setting the clip volume for a view using mdlView_setClipBoundaryElement. Here's the implementation: [DllImport("stdmdlbltin.dll", CallingConvention = CallingConvention.Cdecl)] internal…
  • [V8i C#/MDL] Translating StatusInt into something readable.

    I wonder if anyone could help please? I've got various unmanaged MDL functions in a C# addin for microstation v8i. The implementation of these is fine and when they work it's great. Here's some code for background: [DllImport("stdmdlbltin.dll", CallingConvention…
  • [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…